我正在尝试通过ssh隧道连接到远程docker主机.我转发了2375端口,我正在尝试通过指定连接到它DOCKER_HOST.
$ DOCKER_API_VERSION=1.24 DOCKER_HOST=localhost:2375 docker ps
error during connect: Get https://localhost:2375/v1.24/containers/json: http: server gave HTTP response to HTTPS client
Run Code Online (Sandbox Code Playgroud)
这之前已经有用了,但是我无法让它再次运行,因为我的docker客户端不断给我回复这个错误.我无法忽略https/http的内容.连接是正常的,我可以很好地卷曲端点,它只是停靠客户端正在做某事然后阻止自己连接,我不知道如何让它忽略https.