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 “”: command [ssh -l root – 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 port 22: Connection refused

1 Like