title: How to make Minio-client (from host) talk with Minio-server(docker container)?
body: <p>I am running a minio-server in the container of docker-compose. I am trying to upload a file to the minio-server in the container, from the host machine (Ubuntu) (instead of container) by using minio-client (python SDK). 
  I did not make it happen as expected. 
  I am not clear if it is because of my endpoint(URL), or due to the connection issue between container and host?</p>
  
  <p>The endpoints i tried: </p>
  
  <p>url_1 = '<a href="http://minio:9000" rel="noreferrer">http://minio:9000</a>' # from my default setup for minio link;</p>
  
  <p>url_2 = '<a href="http://localhost:9000/minio/test" rel="noreferrer">http://localhost:9000/minio/test</a>' # from Minio browser.</p>
  
  <p>For url_1, what i got is: " botocore.exceptions.EndpointConnectionError: Could not connect to the endpoint URL: <a href="http://minio:9000/test" rel="noreferrer">http://minio:9000/test</a> ". 
  The line of error: s3.create_bucket(Bucket='test')</p>
  
  <p>For url_2, what i got is: " All access to this bucket has been disabled. ". 
  The line of error: s3.create_bucket(Bucket='test')</p>
  
  <p>I tried the similar thing: activating my minio-server and minio-client both in my host machine. Then i upload file from the minio-client to the minio-server. I can see those uploaded files in Minio browser in localhost.</p>
  
  #########   python script uploading files
  
  <pre><code>import boto3
  
  from botocore.client import Config
  
  import os
  
  import getpass
  
  my_url1='http://minio:9000' # this is from os.environ['S3_URL']
  my_url2='http://localhost:9000/minio/test' # this is from browser
  
  s3 = boto3.resource('s3',
                  endpoint_url=my_url2,
                  aws_access_key_id=os.environ['USER'],
                  aws_secret_access_key = getpass.getpass('Password:'),
                  config = Config(signature_version='s3v4'),
                  region_name='us-east-1')
  
  print ('********', s3)
  
  s3.create_bucket(Bucket='test')
  
  uploadfile= os.getcwd()+'/'+'test.txt'
  s3.Bucket('testBucket').upload_file(uploadfile,'txt')
  </code></pre>
  
  #########   docker-yml file for Minio
  
  <pre><code>minio:
     image: minio/minio
     entrypoint:
        - minio
        - server
        -/data
     ports:
        - "9000:9000"
     environment:
        minio_access_key = username
        minio_secret_key = password
  
  mc:
     image: minio/mc
     environment: 
        minio_access_key = username
        minio_secret_key = password
     entrypoint:
        /bin/sh -c     
     depends_on:
        minio
  </code></pre>
  
  <p>i expected to see the uploaded files from the minio browser('<a href="http://localhost:9000/minio/test" rel="noreferrer">http://localhost:9000/minio/test</a>') , just like what i did from activating minio-server and minio-client both at the host.</p>