I have several docker containers, now I setup a PC with Proxmox.

Which is the best approach to run containers on Proxmox?

Reading online there are two approaches VM Vs LXC (Ubuntu I prefer).

What do you suggest?

Thanks

  • thekrautboy@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    10 months ago

    Why not ask /r/Proxmox?

    In general its not recommended to run Docker inside a LXC, especially for a beginner. However plenty of people (including myself) are doing it, you just might run into a few hurdles.

    If you plan on having mostly a single Docker host with your containers running, then i would suggest a VM for that.

    If you want to run multiple hosts separately, then the overhead from each VM adds up and i would recommend separate LXC instead.

    This gets asked often, you could simply search for existing threads.

    • c_one@alien.topB
      link
      fedilink
      English
      arrow-up
      1
      ·
      10 months ago

      If for example he wnats 1 vm with all docker things inside wouldnt it be better to just install drbian and rin docker inside. Instead of running a vm in promix that runs docker?

    • xXfreshXx@alien.topB
      link
      fedilink
      English
      arrow-up
      1
      ·
      10 months ago

      What about monitoring like netdata? Is this recommended to run in a host docker? It’s my only docker container running on host…

  • MainstreamedDog@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    10 months ago

    Just take the tteck script for alpine docker and portainer, very lightweight. I even use one for each docker service and then just backup/restore on the full Proxmox container level.

  • Spaceman_Splff@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    10 months ago

    I have all my docker containers in a vm and then anything not docker in a lxc. For a while I didn’t have issues with docker containers in lxc and then they all stopped worked every time there as an update so I moved them to vms.