Hi everyone! I'm new to Docker and trying to figure out how to set it up on my home network. I have a Docker daemon running on a Linux host (specifically, Ubuntu on a Raspberry Pi), and I'm using Docker Desktop on my Mac. However, when I run something on the Pi, like a basic Nginx container, it doesn't show up in the container list on my Mac's Docker Desktop UI. I'm able to connect via SSH (confirmed it's working), and I've set the endpoint for the client (Mac) to `ssh://user@host`. I've also tried setting a context on the Mac and adjusting the `DOCKER_HOST` environment variable. I'm a bit stuck since I can see the running containers on the Linux host when I use `docker ps` in the terminal, so communication seems to work. Am I missing something, or is there an issue with the Mac client?
4 Answers
Docker Desktop isn't really designed for managing remote containers effectively, which could be why you're running into this issue. If you need remote management, you might want to try alternatives like Dockge, Portainer, or even Orbstack and Colima on your Mac instead. They may work better for this kind of setup.
Interesting setup! I usually just log into the Docker host directly and run my commands there, sometimes using an Ansible playbook for automation. Docker Desktop seems more focused on local development, which might be the reason for your troubles.
You can connect to a Linux socket or TCP endpoint on your host. However, I would recommend using TCP over SSH due to some known limitations with SSH.
I do this using Docker CLI installed via Homebrew. You can create a context with a command like: `docker context create some-linux-host --docker "host=ssh://myuser@some-linux-host"`. Just make sure to SSH into the host first to accept the key—that seems to be necessary.
Related Questions
How To: Running Codex CLI on Windows with Azure OpenAI
Set Wordpress Featured Image Using Javascript
How To Fix PHP Random Being The Same
Why no WebP Support with Wordpress
Replace Wordpress Cron With Linux Cron
Customize Yoast Canonical URL Programmatically