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).
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?
I'm using docker for mac, Mac OS Mojave (10.14.6).
Best Regards.