title: docker create context ecs fails in github actions
body: <p>I'm trying to <a href="https://docs.docker.com/cloud/ecs-integration/" rel="nofollow noreferrer">deploy my docker containers to ECS using docker compose</a>. Everything works as expected locally, but when I try to do the same in a github actions workflow, I get the following error when trying to run <code>docker create context ecs ecscontext</code>:</p>
  <p><code>&quot;docker context create&quot; requires exactly 1 argument.</code></p>
  <p>I first assumed the error was because the docker and docker-compose version on the github runner were different my local ones, so I uninstalled them and reinstalled them. Here is the the modified workflow file:</p>
  <pre><code>name: deploy
  
  on:
    workflow_dispatch:
    repository_dispatch:
      types: [update_stack]
  
  jobs:
    deploy:
      name: &quot;Deploy stack&quot;
      runs-on: ubuntu-latest
      env:
        AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
        AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY}}
        AWS_DEFAULT_REGION: us-east-1
      steps:
        -
          name: Update docker version
          run: |
            sudo apt-get remove docker docker-engine docker.io containerd runc
            sudo apt-get update -y
            sudo apt-get install -y ca-certificates curl gnupg lsb-release
            curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
            echo &quot;deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable&quot; | sudo tee /etc/apt/sources.list.d/docker.list &gt; /dev/null
            sudo apt-get update -y
            sudo apt-get install -y docker-ce docker-ce-cli containerd.io
        -
          name: Update docker-compose version
          run: |
            sudo rm /usr/local/bin/docker-compose
            sudo mkdir -p /usr/local/lib/docker/cli-plugins
            sudo curl -SL https://github.com/docker/compose/releases/download/v2.2.3/docker-compose-linux-x86_64 -o /usr/local/lib/docker/cli-plugins/docker-compose
            sudo chmod +x /usr/local/lib/docker/cli-plugins/docker-compose
        -
          name: check docker new version 
          run: docker -v
        -
          name: check docker compose new version 
          run: docker compose version
        -
          name: Create ECS docker context
          run: sudo docker context create ecs ecscontext --from-env
  </code></pre>
  <p>The <code>docker -v</code> output is the same the one I have locally: <code>Docker version 20.10.12, build e91ed57</code></p>
  <p>The <code>docker compose version</code> output is the same as the one I have locally: <code>Docker Compose version v2.2.3</code></p>
  <p>Yet it still fails at the create context step. Any help is appreciated.</p>