News for hackers. Stuff that matters.
Re:LXC vs. Docker by bamboozled on Friday February 18, 2022 @10:55AM (#30387314)
One major limitation of LXC is that there is no way to easily self host images. Often the the official images for many distributions are buggy. For example, the official Ubuntu images seem to come with a raft of known issues.

Based on my limited interactions with it, I'd recommend staying away from LXC unless absolutely neccesary.

Re:LXC vs. Docker by Lifelarper on Friday February 18, 2022 @01:36PM (#30389388)
> there is no way to easily self host images

When you run lxd init there's an option to make the server available over the network (default: No), if enabled you can host images from there.

    lxc remote add myimageserver images.bamboozled.com
    lxc publish myimage
    lxc image copy myimage myimageserver
    
    lxc launch myimageserver:myimage
Re:LXC vs. Docker by bamboozled on Wednesday February 23, 2022 @08:46PM (#30449289)
That's half the story, I don't want to have to build my own infra to host something simple like an image in a redundant highly available way.

In the end I just settled from hosting on s3, downloading the images with curl (or similar) and running `lxc import`.

The support in configuration management tooling is also pretty limited and the stuff I've used has been fairly buggy, in my opinion, because it's not very popular.

Re:LXC vs. Docker by unixhero on Friday February 18, 2022 @11:01AM (#30387398)
In Proxmox "self hosting" meaning having a folder with LXC images is part of the distribution. You can download templates from online sources and use as images or create your own templates from already running LXCs. Or maybe you mean self hosting in another way?
Re:LXC vs. Docker by pentium166 on Friday February 18, 2022 @11:01AM (#30387396)
I've only played around with LXC/LXD a little bit, what are some of the Ubuntu image issues? I did a quick google, but the first results seemed to be questions about hosting on Ubuntu rather than with the images themselves.
Re:LXC vs. Docker by silverwind on Friday February 18, 2022 @12:42PM (#30388702)
In my experience, most issues are related to kernel interfaces which LXC disables inside unprivileged containers, paired with software that does not check if those interfaces are there/work before attempting to use them.

These issues can be observed in the official Ubuntu image and seem to get worse over time. I would recommend to just use VMs instead.

Re:LXC vs. Docker by fuzzy2 on Friday February 18, 2022 @12:36PM (#30388624)
If you feel that the existing images (of lxc-download?) have too many bugs for your liking, you could also try the classic templates, which use debootstrap and the like to create the rootfs.