docker-archive / compose-cli

Easily run your Compose application to the cloud with compose-cli
Apache License 2.0
957 stars 255 forks source link

ECS support broken under Linux with ""docker context create" requires exactly 1 argument." error #2238

Open ivdok opened 1 year ago

ivdok commented 1 year ago

Description Documentation suggests to "Run the docker context create ecs myecscontext command to create an Amazon ECS Docker context ", but this functionality is broken:

[ivdok@archlinux ~]$ aws --version
aws-cli/1.27.89 Python/3.10.10 Linux/6.2.8-arch1-1 botocore/1.29.89
[ivdok@ruan ~]$ docker --version
Docker version 23.0.1, build a5ee5b1dfc
[ivdok@archlinux ~]$ pacman -Q | grep docker
docker 1:23.0.1-1
docker-compose 2.17.2-1
docker-compose-cli 1.0.29-1
[ivdok@archlinux ~]$ docker context create ecs myecscontext
"docker context create" requires exactly 1 argument.
See 'docker context create --help'.

Usage:  docker context create [OPTIONS] CONTEXT

Create a context

Steps to reproduce the issue:

  1. Install Docker, Compose and Compose-CLI
  2. Read and try step from manual
  3. Fail

Describe the results you received: Failure

Describe the results you expected: ECS context created

Output of docker-compose --version:

Docker Compose version 2.17.2

Output of docker version:

Docker version 23.0.1, build a5ee5b1dfc

Output of docker context show:
You can also run docker context inspect context-name to give us more details but don't forget to remove sensitive content.

default

Output of docker info:

Client:
 Context:    default
 Debug Mode: false
 Plugins:
  compose: Docker Compose (Docker Inc.)
    Version:  2.17.2
    Path:     /usr/lib/docker/cli-plugins/docker-compose

Server:
 Containers: 24
  Running: 2
  Paused: 0
  Stopped: 22
 Images: 348
 Server Version: 23.0.1
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: true
  Native Overlay Diff: false
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: systemd
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 1fbd70374134b891f97ce19c70b6e50c7b9f4e0d.m
 runc version: 
 init version: de40ad0
 Security Options:
  seccomp
   Profile: builtin
  cgroupns
 Kernel Version: 6.2.8-arch1-1
 Operating System: Arch Linux
 OSType: linux
 Architecture: x86_64
 CPUs: 16
 Total Memory: 30.72GiB
 ID: 5Z72:ZR3X:DPBW:ADTJ:UCOZ:UDGS:7ZGS:SDHV:HDFX:3UGN:UFDW:BKYO
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Registry: https://index.docker.io/v1/
 Experimental: true
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false
sdtai commented 1 year ago

You need to install compose-cli - check for "Cloud integeration" in your docker info. Definite documentation issue but sort of irrelevant now.