News for hackers. Stuff that matters.
Re:My Fediverse use – I'm hosting everything myself – PeerTu... by martincmartin on Tuesday December 05, 2023 @01:43PM (#38535159)
Couldn't someone make a Docker instance that, inside it, contains the 2-3 other docker instances? I hear it's docker all the way down.
Re:My Fediverse use – I'm hosting everything myself – PeerTu... by dgellow on Tuesday December 05, 2023 @01:54PM (#38535321)
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.
Re:My Fediverse use – I'm hosting everything myself – PeerTu... by mappu on Tuesday December 05, 2023 @03:02PM (#38536207)
It 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?

Re:My Fediverse use – I'm hosting everything myself – PeerTu... by dgellow on Tuesday December 05, 2023 @04:43PM (#38537335)
I cannot fix my comment anymore, but I meant to write DinD.

See https://hub.docker.com/_/docker

Re:My Fediverse use – I'm hosting everything myself – PeerTu... by apitman on Tuesday December 05, 2023 @05:54PM (#38538085)
The Nextcloud All in One (AOI) images takes another approach, which is use the first image to launch the other needed images. So it lets you avoid docker compose at the cost of needing to pass the docker socket to the AOI container.
Re:My Fediverse use – I'm hosting everything myself – PeerTu... by snailmailman on Wednesday December 06, 2023 @04:18AM (#38541896)
I tried this and I did not enjoy it. A docker container with access to docker socket is so cursed.

I kept having issues, like I tried to stop the container and it left all the extra containers it made running. They also had different network settings than the ones I set on the parent container. I don’t remember the exact issue but I had to manually adjust the network that it made- because it just made its own and ignored the one I assigned the parent container too.

It was the easiest way to get Nextcloud running but I immediately stopped it. I don’t want Nextcloud able to tamper with my other docker containers. I want it contained.

I haven’t yet had a chance to figure out how to get their containers running normally.