[BUG] When using DOCKER_HOST=ssh://macos.local get `FIXME: Got a status-code for which error does not match any expected type!!! error="error during connect:...` #10421
Get that weird error sometimes even from simply docker-compose stop when using an ssh DOCKER_HOST connection to a Mac running Docker for Desktop.
It normally works but sometimes gets into a state like this where every docker-compose operation returns that error.
This has been happening for past few years through all releases.
Is there any way to get more information about what is causing the problem? Can the FIXME output from --debug be improved to show more details?
% docker-compose --debug --ansi never stop --timeout 240
DEBU[0000] commandconn: starting ssh with [-- 192.168.1.50 docker system dial-stdio]
DEBU[0000] commandconn: starting ssh with [-- 192.168.1.50 docker system dial-stdio]
Container foo-test-1 Stopping
Container foo-socatetcd-1 Stopping
Container foo-socatbarapi-1 Stopping
Container foo-barcentos-1 Stopping
Container foo-socatbarscsp-1 Stopping
Container foo-socatbarconsole-1 Stopping
Container foo-s3ql-1 Stopping
Container foo-https-1 Stopping
DEBU[0000] commandconn: starting ssh with [-- 192.168.1.50 docker system dial-stdio]
Container foo-grafana-1 Stopping
DEBU[0000] commandconn: starting ssh with [-- 192.168.1.50 docker system dial-stdio]
Container foo-dnsmasq-1 Stopping
DEBU[0000] commandconn: starting ssh with [-- 192.168.1.50 docker system dial-stdio]
DEBU[0000] commandconn: starting ssh with [-- 192.168.1.50 docker system dial-stdio]
DEBU[0000] commandconn: starting ssh with [-- 192.168.1.50 docker system dial-stdio]
DEBU[0000] commandconn: starting ssh with [-- 192.168.1.50 docker system dial-stdio]
DEBU[0000] commandconn: starting ssh with [-- 192.168.1.50 docker system dial-stdio]
Container foo-elasticsearchexporter-1 Stopping
Container foo-prometheus-1 Stopping
DEBU[0000] commandconn: starting ssh with [-- 192.168.1.50 docker system dial-stdio]
DEBU[0000] commandconn: starting ssh with [-- 192.168.1.50 docker system dial-stdio]
DEBU[0000] commandconn: starting ssh with [-- 192.168.1.50 docker system dial-stdio]
DEBU[0000] commandconn: starting ssh with [-- 192.168.1.50 docker system dial-stdio]
Container foo-socatbarscsp-1 Stopped
Container foo-socatbarconsole-1 Stopped
Container foo-socatbarapi-1 Stopped
Container foo-test-1 Stopped
DEBU[0000] FIXME: Got an status-code for which error does not match any expected type!!! error="error during connect: Post \"http://docker.example.com/v1.41/containers/a1d7360a7d10d2edeb3c89e5132434711df92e5c67e46a42266e6cf82d56dbe6/stop?t=240\": command [ssh -- 192.168.1.50 docker system dial-stdio] has exited with signal: killed, please make sure the URL is valid, and Docker 18.09 or later is installed on the remote host: stderr=" module=api status_code=-1
Container foo-s3ql-1 Error while Stopping
DEBU[0000] FIXME: Got an status-code for which error does not match any expected type!!! error="error during connect: Post \"http://docker.example.com/v1.41/containers/af28133c15a27eff2597b3df21bb5caee108171599961d87b983d37ff2567b29/stop?t=240\": command [ssh -- 192.168.1.50 docker system dial-stdio] has exited with signal: killed, please make sure the URL is valid, and Docker 18.09 or later is installed on the remote host: stderr=" module=api status_code=-1
Container foo-elasticsearchexporter-1 Error while Stopping
DEBU[0000] FIXME: Got an status-code for which error does not match any expected type!!! error="error during connect: Post \"http://docker.example.com/v1.41/containers/b2625a418431cda19410df3205e4b6afe6102317be94d6b4b3fdd3b9e168fb84/stop?t=240\": command [ssh -- 192.168.1.50 docker system dial-stdio] has exited with signal: killed, please make sure the URL is valid, and Docker 18.09 or later is installed on the remote host: stderr=" module=api status_code=-1
Container foo-prometheus-1 Error while Stopping
Container foo-barcentos-1 Stopped
Container foo-grafana-1 Stopped
Container foo-socatetcd-1 Stopped
Container foo-etcd-1 Stopping
Container foo-https-1 Stopped
Container foo-dnsmasq-1 Stopped
DEBU[0000] FIXME: Got an status-code for which error does not match any expected type!!! error="error during connect: Post \"http://docker.example.com/v1.41/containers/ef706bf48da05ce331791d81d8910ee36828a3c6e7ad93a51050ea3cabdda054/stop?t=240\": command [ssh -- 192.168.1.50 docker system dial-stdio] has exited with signal: killed, please make sure the URL is valid, and Docker 18.09 or later is installed on the remote host: stderr=" module=api status_code=-1
Container foo-etcd-1 Error while Stopping
error during connect: Post "http://docker.example.com/v1.41/containers/a1d7360a7d10d2edeb3c89e5132434711df92e5c67e46a42266e6cf82d56dbe6/stop?t=240": command [ssh -- 192.168.1.50 docker system dial-stdio] has exited with signal: killed, please make sure the URL is valid, and Docker 18.09 or later is installed on the remote host: stderr=
Steps To Reproduce
Sorry I don't have an easily reproducible scenario. It's a compose file with several services, some of them scaled.
I use DOCKER_HOST=ssh:// pointing to my Mac mini (up to date OS/Docker on both my MacBook and the mini).
I'm happy to run with more debug options or a special build with logging if needed.
Compose Version
% docker-compose --version
Docker Compose version v2.15.1
Description
Get that weird error sometimes even from simply
docker-compose stop
when using anssh
DOCKER_HOST connection to a Mac running Docker for Desktop. It normally works but sometimes gets into a state like this where every docker-compose operation returns that error.This has been happening for past few years through all releases.
I've tried with and without the .ssh/config suggestions in https://docs.docker.com/engine/security/protect-access/, which do help on linux, but don't seem to help with macOS.
Is there any way to get more information about what is causing the problem? Can the FIXME output from
--debug
be improved to show more details?Steps To Reproduce
Sorry I don't have an easily reproducible scenario. It's a compose file with several services, some of them scaled. I use DOCKER_HOST=ssh:// pointing to my Mac mini (up to date OS/Docker on both my MacBook and the mini). I'm happy to run with more debug options or a special build with logging if needed.
Compose Version