3 ms·
Somewhat not related and likely dumb question but I figure folks looking at this article can help steer me in the right direction: if I want containers to act l
by zamadatix 5y ago
Somewhat not related and likely dumb question but I figure folks looking at this article can help steer me in the right direction: if I want containers to act like Linux VMs what's the best option? Like Docker minus the assumption that I only want a few specific directories to persist or the idea I'm interested in layering containers in a way that lets me reproduce building them. Like if I just want another separate full instance of Alpine with it's own network view and own filesystem view and own everything but sharing the host kernel instead of being fully virtualized.
- oddlama 5y agoYou might want to have a look at systemd-nspawn [1], which is basically containerized chroot based on linux namespaces. [1] https://www.freedesktop.org/software/systemd/man/systemd-nspawn.html https://www.freedesktop.org/software/systemd/man/systemd-nsp...
- CameronNemo 5y agoI don't think you can easily use systemd-nspawn on Alpine.
- zamadatix 5y agoThis is exactly what I needed! Thank you!
- Hendrikto 5y agoThat’s basically what systemd-nspawn does.
- CameronNemo 5y agoLXD is probably the most polished option. I believe it is packaged and up to date on Alpine.
- SkyMarshal 5y agoIn addition to systemd-nspawn, Kata Containers might also work for you: https://katacontainers.io/ https://katacontainers.io/