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…

  • foremanguyOP
    link
    fedilink
    English
    14 days ago

    Humm Im going to check it, but do you think that it would be a good option to deploy all my services to lxc even if their primary release channel is docker?

    • @Oisteink
      link
      English
      44 days ago

      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.

      • foremanguyOP
        link
        fedilink
        English
        1
        edit-2
        4 days ago

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

        (I didn’t know about your “fun fact” :) thx)

        • @Oisteink
          link
          English
          34 days ago

          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

          • foremanguyOP
            link
            fedilink
            English
            13 days 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 😁