title: Docker CLI does not Understand AWS CLI SSO Credentials
body: <p>I am using Single sign-on (SSO) authentication with AWS.</p>
  <p>In the terminal, I sign into my SSO account, successfully:</p>
  <pre><code>aws sso login --profile dev
  </code></pre>
  <p>Navigating to the directory of the docker-compose.yml file, and using Docker in an Amazon ECS context, the command <code>docker compose up -d</code> fails with:</p>
  <pre><code>NoCredentialProviders: no valid providers in chain. Deprecated.
          For verbose messaging see aws.Config.CredentialsChainVerboseErrors
  </code></pre>
  <p>I have deleted the old (non-SSO) access keys and profiles in:</p>
  <pre><code>~/.aws/config
  
  ~/.aws/credentials
  </code></pre>
  <p>So now all that is present in the above directories is my SSO account.</p>
  <p>Before SSO (using IAM users), <code>docker compose up -d</code> worked as expected, so I believe the problem is that Docker is having difficulty connecting to AWS via SSO on the CLI.</p>
  <p>Any help here is much appreciated.</p>
  <p>Docs on Docker ECS integration: <a href="https://docs.docker.com/cloud/ecs-integration/" rel="nofollow noreferrer">https://docs.docker.com/cloud/ecs-integration/</a></p>
  <p>The <code>docker-compose.yml</code> file looks like this:</p>
  <pre><code>version: &quot;3.4&quot;
  
  x-aws-vpc: &quot;vpc-xxxxx&quot;
  x-aws-cluster: &quot;test&quot;
  x-aws-loadbalancer: &quot;test-nlb&quot;
  
  services:
    test:
      build:
        context: ./
        dockerfile: Dockerfile
        target: development
      image: xxx.dkr.ecr.eu-west-1.amazonaws.com/xxx:10
      environment:
        - AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
        - AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
        - ENABLE_SWAGGER=${ENABLE_SWAGGER:-true}
        - LOGGING_LEVEL=${LOGGING_LEVEL:-INFO}
      ports:
        - &quot;9090:9090&quot;
  </code></pre>