Docker Compose doesn't work anymore

Steps to reproduce:

-Install docker on a remote machine
-Set up docker context: docker context create remote --docker “host=ssh://root@remote_ip”
-docker context use remote
-Check it is connected and working properly, say, by running docker info or docker container ls
-Now run docker compose build. Result:

error during connect: Get “http://docker.example.com/v1.24/containers/buildx_buildkit_fsr/json”: command [ssh -l root – 164.92.116.180 docker system dial-stdio] has exited with exit status 255, please make sure the URL is valid, and Docker 18.09 or later is installed on the remote host: stderr=ssh: connect to host 164.92.116.180 port 22: Connection refused

1 Like