2 ms·
Docker compose makes it relatively easy to coordinate multiple containers. But to answer your actual question, yes, that’s possible though definitely not recomm
by dgellow 3y ago
Docker compose makes it relatively easy to coordinate multiple containers. But to answer your actual question, yes, that’s possible though definitely not recommended for standard hosting, it’s called DiD (docker in docker) and is fairly common for CIs.
- mappu 3y agoIt is common to use --privileged (or -v docker.sock) and run docker commands inside docker. But then you're not really in the container, you may as well be on the host. I think genuinely containerizing inside an ordinary container, without --privileged, would mean taking extreme compromises like bocker or proot. What's the state of the art here?
- dgellow 3y agoI cannot fix my comment anymore, but I meant to write DinD. See https://hub.docker.com/_/docker https://hub.docker.com/_/docker