title: Unable to connect to a Localstack docker instance on a Windows 10 machine - Unable to locate credentials
body: <p>I'm trying to experiment with <a href="https://github.com/localstack/localstack" rel="noreferrer">Localstack</a> on a Windows 10 machine.</p>
  <ul>
  <li>I wish to use the <a href="https://hub.docker.com/r/localstack/localstack" rel="noreferrer">localstack/localstack</a> docker image.</li>
  <li>I also wish to use the <a href="https://hub.docker.com/r/amazon/aws-cli" rel="noreferrer">amazon/aws-cli</a> docker image for running commands against my Localstack instance. (e.g. create an S3 bucket).</li>
  <li>Do <em>not</em> want to install python/pip on my windows machine.</li>
  <li>Do <em>not</em> want to <em>install</em> aws-cli on my windows machine. (Note: I want to use docker images for aws-cli commands.)</li>
  </ul>
  <p>So I seem to have Localstack running ok, but when I try and run an AWS command against the Localstack instance, I get an <code>Unable to locate credentials</code> error.</p>
  <p>e.g.</p>
  <pre><code>CMD &gt; docker run --rm -it amazon/aws-cli --endpoint-url=http://localhost:4566 s3 mb s3://testbucket
  make_bucket failed: s3://testbucket Unable to locate credentials
  </code></pre>
  <p>and my docker file:</p>
  <pre><code>version: '3.2'
  
  services:
    
    localstack:
      image: localstack/localstack # This will pull the latest
      container_name: localstack
      network_mode: bridge
      ports:
        - 4566:4566 # All servics will now go through the same port.
        - &quot;4571:4571&quot;
        - &quot;${PORT_WEB_UI-8080}:${PORT_WEB_UI-8080}&quot;
      environment:
        - SERVICES=s3
        - DEBUG=1
        - DATA_DIR=/tmp/localstack/data # This is the where the data will be stored/saved, inside the docker instance
        - PORT_WEB_UI=${PORT_WEB_UI- }
      volumes:
        - &quot;localstack-vol:/tmp/localstack&quot;
  
  volumes:
    localstack-vol:
  </code></pre>
  <h3>Questions</h3>
  <p><strong>Is it possible to run an AWS command (like create an S3 bucket) from the <code>aws-cli</code> docker image against a Localstack instance?</strong></p>
  <p><strong>Is there a way I can specify credentials?</strong></p>
  <p>I also have a <code>C:\Users\&lt;username&gt;\.aws</code> <code>config</code> and <code>credentials</code> file(s) with the following:</p>
  <pre><code>Credentials
  
  [&lt;snip&gt;]
  aws_access_key_id=&lt;snip&gt;
  aws_secret_access_key=&lt;snip&gt;
  
  [localstack]
  aws_access_key_id = foo
  aws_secret_access_key = bar
  
  
  config
  [profile &lt;snip&gt;]
  region = us-west-2
  role_arn = arn:aws:iam::&lt;snip&gt;:role/local-development
  source_profile = &lt;snip&gt;
  
  [profile localstack]
  region = us-west-2
  output = json
  
  </code></pre>
  <p>Can someone see what I've done wrong, please?</p>