#DockerTips: Connect to Docker daemon over ssh using docker-compose

Sujay Pillai
Jan 21 · 3 min read
$ export DOCKER_HOST=ssh://root@165.227.106.59$ docker image lsREPOSITORY  TAG       IMAGE ID            CREATED             SIZEnginx       latest    7042885a156a        3 weeks ago         109MB$ docker ps --format "{{.ID}} :: {{.Image}} {{.Ports}} {{.Names}}"19d5a2d4f7f0 :: nginx 0.0.0.0:32768->80/tcp sleepy_cohen

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade