Ancestors

Written by foremanguy on 2024-12-08 at 18:16

How to use LXC containers in Proxmox?

https://lemmy.ml/post/23362221

=> More informations about this toot | More toots from foremanguy92_@lemmy.ml

Written by walden on 2024-12-08 at 18:56

If I remember correctly, Proxmox recommends running Docker in virtual machines instead of LXC containers. I sort of gave up on LXC containers for what I do, which is run stuff in Docker and use my server as a NAS with ZFS storage.

LXC containers are unprivileged by default, so the user IDs don’t match the conventional pattern (1000 is the main user, etc.). For a file sharing system this was a pain in the butt, because ever file ended up being owned by crazy user. There are ways around it which I did for some time, but moving to virtual machines instead has been super smooth.

They also don’t recommend running Docker on bare metal (Proxmox is Debian, after all). I don’t know the reasons why, but I tend to agree simply for backups. My Docker VMs get automatically backed up on a schedule, and those backups automatically get sent to Backblaze B2 on a schedule

=> More informations about this toot | More toots from walden@sub.wetshaving.social

Written by foremanguy on 2024-12-08 at 19:11

Basically I want to get rid of docker for the most part, and run apps directly into containers. So if one of my services corrupt or something bad happen I can recover from backup without affecting others. So how do you apply your backups when running several services in docker?

=> More informations about this toot | More toots from foremanguy92_@lemmy.ml

Written by notfromhere@lemmy.ml on 2024-12-09 at 04:58

Honestly, what you’re trying to do is a great use case for docker already. I suggest learning more about how to use docker, take backups, restore from backups, etc. E.g., I have a NFSv4 share that I store all of my containerized services’ config and data files in. Any time I need to restore a precious version, it’s as easy as restoring the previous version files and starting the previous version container.

=> More informations about this toot | More toots from notfromhere@lemmy.ml

Toot

Written by foremanguy on 2024-12-09 at 07:01

Yeah that could be an option too, but I kinda like the way how lxc works so I’m going to stick to it and write scripts to make the whole thing automated

=> More informations about this toot | More toots from foremanguy92_@lemmy.ml

Descendants

Written by notfromhere@lemmy.ml on 2024-12-09 at 14:28

Check out ansible for ways to automate this stuff. Highly recommended!

=> More informations about this toot | More toots from notfromhere@lemmy.ml

Written by foremanguy on 2024-12-09 at 17:08

I thought to only cron to run weekly update

=> More informations about this toot | More toots from foremanguy92_@lemmy.ml

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113621576277998498
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
284.881553 milliseconds
Gemini-to-HTML Time
1.609543 milliseconds

This content has been proxied by September (3851b).