Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



"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/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://linuxconta... (the documentation is no longer available on linuxcontainers.org now that Canonical has taken over the project).


Thanks!




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: