TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Use Docker Engine from VM

1 pointsby kbbgl87over 1 year ago
I have a Mac host machine that has a Docker daemon running on it. I have multipass installed on the host machine which I use to create Ubuntu VMs. The VMs are created in a bridged network. I was able to set up ssh both ways so I can access the VMs from my host and vice versa. Thing is, my VM has very limited resources and I need to use Docker within it. I was thinking to set up the Docker client on the VM to use the Docker engine/daemon of my host machine. How would I do something like that?

2 comments

JojoFatsaniover 1 year ago
Somewhere in the docker daemon’s config parameters I imagine: <a href="https:&#x2F;&#x2F;docs.docker.com&#x2F;engine&#x2F;reference&#x2F;commandline&#x2F;dockerd" rel="nofollow">https:&#x2F;&#x2F;docs.docker.com&#x2F;engine&#x2F;reference&#x2F;commandline&#x2F;dockerd</a>
stop50over 1 year ago
You can open the socket on an network that can only be accessed between host an vm.
评论 #39049368 未加载