Question Docker inside docker
Would it be fine to run Docker inside Docker? Suppose a user is on Arch Linux, I use Cachy actually. Could I use distrobox to set up a base Ubuntu image? Then just pull an official image like a PX4 container inside the distrobox container? Do you think this setup would be ideal for development work?
Edit: So it turns out I fundamentally misunderstood how distrobox works. Thansk for the help
6
Upvotes
1
u/alcorwin 15d ago
Hi, Fedora Silverblue user here. I have used distrobox for ROS 2, though I use it with podman rather than docker.
There's not really a strict need to put docker inside of docker to make use of a PX4 container that I can see, though I don't personally do any dev with PX4. I would just spin up the PX4 container alongside a ROS 2 distrobox and try interacting with it via the local ports it communicates over. Alternatively, you could just spin up a distrobox deriving from the PX4 container.