this post was submitted on 08 Dec 2024
21 points (83.9% liked)

Selfhosted

40633 readers
324 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

Hello, have setup my proxmox server since some weeks recently I found that LXC containers could be useful as it really separate all my services in differents containers. Since then I figured out to move my docker's services from a vm into several LXC containers. I ran into some issues, the first one is that a lot of projects run smoother in docker and doesn't really have a "normal" way of being package... The second thing is related to the first one, since they are not really well implemented into the OS how can I make the updates?
So I wonder how people are deploying their stuffs on LXC proxmox's containers?
Thanks for your help!

EDIT : Tried to install docker upon debian LXC but the performances were absolutely terrible...

you are viewing a single comment's thread
view the rest of the comments
[–] Oisteink@lemmy.world 4 points 1 week ago (1 children)

That depend on how much work you have to do to keep it working.

Let’s take a fairly common webserver like Caddy. Now you can install this through docker, or natively on linux.

If the app only exists as docker image then it cones down to your ability or recreating what the dockerfile does to get it installed on your lxc container.

Fun fact: early editions of docker used lxc for its containers.

[–] foremanguy92_@lemmy.ml 1 points 1 week ago* (last edited 1 week ago) (1 children)

So I would have to write some scripts for installing and maintaining my installs?

(I didn't know about your "fun fact" :) thx)

[–] Oisteink@lemmy.world 3 points 1 week ago (1 children)

Depends on what you’d want. A dockerfile defines how the image is built. If you want to mimic this then you need scripts.

But I think you could benefit from learning how docker works from the ground up if you want to recreate docker inages in lxc.

Better use is a dedicated docker host (a vm) and run your non-docker on lxc. Treat lxc as a minimal vm for one ( or a few) services/apps per lxcontainer

[–] foremanguy92_@lemmy.ml 1 points 1 week ago

I wanted to use containers to have good maintained and isolated stuff, so I think I'm going to use scripts to install and update all my stuff 😁