title: passing url as arguments in python when running docker image
body: <p>I want to pass an GCP storage URL as argument when running my docker image, so that it can pull my csv file from my storage and print the dataset .</p>
  
  <p>Below is my dockerfile</p>
  
  <pre><code># Use the official lightweight Python image.
  # https://hub.docker.com/_/python
  FROM continuumio/miniconda3
  
  
  # Copy local code to the container image.
  ENV APP_HOME /app
  WORKDIR $APP_HOME
  COPY . ./
  
  # Install production dependencies.
  RUN pip install Flask gunicorn
  RUN pip install scikit-learn==0.20.2 firefly-python==0.1.15
  RUN pip install --upgrade google-cloud-storage
  ENTRYPOINT ["python"]
  CMD ["pre.py"]
  </code></pre>
  
  <p>I tried running the docker image by below command and getting below error</p>
  
  <pre><code>docker run preprocess:v1 "https://storage.googleapis.com/MYBucket/app/Model/IrisClassifier.sav"
  </code></pre>
  
  <p>.</p>
  
  <pre><code>python: can't open file 'https://storage.googleapis.com/MYBucket/app/Model/IrisClassifier.sav': [Errno 2] No such file or directory
  </code></pre>
  
  <pre><code>import os
  import argparse
  from google.cloud import storage
  from sklearn.externals import joblib
  from urllib.request import urlopen
  
  def parse_arguments():
      print('entered parse arg')
      parser = argparse.ArgumentParser()
      parser.add_argument('data_dir', type=str, help='GCSpath')
      args = parser.parse_known_args()[0]
      print('Argument passed')
      print(os.getcwd())
      print('STARTING CLOUD RETRIVAL')
      print('*****client initialized')
      dataset_load = joblib.load(urlopen(args.dat_dir))
      print('*****loaded Dataset')
      print(dataset_load)
  
  
  def main(_):
      print("Prior to entering arg")
      parse_arguments()
  </code></pre>
  
  <p>I want to pass a similar GCP bucket when running my docker image
  <a href="https://storage.googleapis.com/MYBucket/app/Model/IrisClassifier.sav" rel="nofollow noreferrer">https://storage.googleapis.com/MYBucket/app/Model/IrisClassifier.sav</a></p>