docker / machine

Machine management for a container-centric world
https://docs.docker.com/machine/
Apache License 2.0
6.62k stars 1.97k forks source link

Docker cli does not work with ssh connection? #4877

Closed frodo821 closed 3 years ago

frodo821 commented 3 years ago

With setting ssh URL to the DOCKER_HOST environment var, the docker CLI does not work.

I'm using an EC2 instance (amazon linux 2) to run the docker daemon and set the ssh URL as the DOCKER_HOST. Then I ran the docker containers command on my local computer, but it had been failed with the error: error during connect: Get http://docker/v1.40/containers/json: net/http: HTTP/1.x transport connection broken: malformed HTTP status code "pid"

Next, I ran the command on the instance over the ssh connection; it seems to be succeeded.

How to fix it? or is this a bug?

$ docker -v
Docker version 19.03.13, build 4484c46d9d

I'm using docker for mac, Mac OS Mojave (10.14.6).

Best Regards.

frodo821 commented 3 years ago

I mistaken the repository to open this issue, sorry.