2 ms·
Can one create and run unprivileged LXC containers easily now? Last time I looked, some years ago, there were some problems (at least in stock Ubuntu) and you p
by severino 3y ago
Can one create and run unprivileged LXC containers easily now? Last time I looked, some years ago, there were some problems (at least in stock Ubuntu) and you practically had to run them as root.
BTW, what does migrating LXC to LXD mean? I always used just LXC, and thought LXD was something at a upper layer to help manage them but you still used the same LXC containers underneath.
- thaumaturgy 3y ago"easily" is a matter of opinion. It did take me a little effort to get it nailed down. Here's the markdown shell script I use to create new LXC containers: https://github.com/robsheldon/biphrost-shell/blob/biphrost/local/new_lxc.md https://github.com/robsheldon/biphrost-shell/blob/biphrost/l... -- it should be easy enough to modify for other environments. It's been a while since I looked into it, but IIRC there was a "migration" or "adoption" step. I think you're generally right that LXD worked like an extension of or administrative layer for LXC, but also: http://web.archive.org/web/20230605025133/https://linuxcontainers.org/lxd/docs/latest/howto/migrate_from_lxc/ http://web.archive.org/web/20230605025133/https://linuxconta... (the documentation is no longer available on linuxcontainers.org now that Canonical has taken over the project).
- severino 3y agoThanks!