compose: docker-compose '-H'/'--host' missing in docker compose
Description
We use docker-compose
with the -H/–host as part of our standard build pipeline, with the latest update of docker on Mac, it forced the use of the new CLI tool and broke all of our deploys.
Steps to reproduce the issue:
- Run any command with -H/–host to use a remote socket
- Watch it break
Describe the results you received: Gives an unknown flag error
Describe the results you expected: It to use the remote socket
Additional information you deem important (e.g. issue happens only occasionally):
Output of docker compose version
:
Docker Compose version v2.0.0
Output of docker info
:
Client:
Context: default
Debug Mode: false
Plugins:
buildx: Build with BuildKit (Docker Inc., v0.6.3)
compose: Docker Compose (Docker Inc., v2.0.0)
scan: Docker Scan (Docker Inc., v0.8.0)
Server:
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 44
Server Version: 20.10.8
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
userxattr: false
Logging Driver: json-file
Cgroup Driver: cgroupfs
Cgroup Version: 1
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 io.containerd.runtime.v1.linux runc
Default Runtime: runc
Init Binary: docker-init
containerd version: e25210fe30a0a703442421b0f60afac609f950a3
runc version: v1.0.1-0-g4144b63
init version: de40ad0
Security Options:
seccomp
Profile: default
Kernel Version: 5.10.47-linuxkit
Operating System: Docker Desktop
OSType: linux
Architecture: x86_64
CPUs: 6
Total Memory: 3.842GiB
Name: docker-desktop
ID: AWDL:LZ3J:PVVP:L26Q:I7PK:LLBM:BOSL:W6HC:DGAG:YPN5:MYJD:KJBH
Docker Root Dir: /var/lib/docker
Debug Mode: true
File Descriptors: 42
Goroutines: 43
System Time: 2021-10-15T08:36:20.537155322Z
EventsListeners: 3
HTTP Proxy: http.docker.internal:3128
HTTPS Proxy: http.docker.internal:3128
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
Additional environment details:
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 1
- Comments: 17
-H
option has to be set on the top-leveldocker
command, not aftercompose
subcommand (same as any other docker command by the way):docker -H ssh://$user@$host pull compose -f compose/alpha.yml
We have the same issue on Linux.
docker -H "ssh://user@address" compose
fails with the messageunknown docker command: "compose compose"
after displaying the command usage documentation.Output of
docker compose version
:Output of
docker info
:This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.