Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Does LXC support Docker by default?
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Does LXC support Docker by default?

suutsuut Member
edited October 2022 in Help

I found that a provider's LXC doesn't seem to be able to run docker properly.
Does LXC need additional settings to enable Docker support?

Comments

  • FlorinMarianFlorinMarian Member, Host Rep

    Hello!
    Yes, we did something like this at host level to enable Docker usage for our LXC containers: https://du.nkel.dev/blog/2021-03-25_proxmox_docker/

    Thanked by 1farsighter
  • @suut said:
    I found that a provider's LXC doesn't seem to be able to run docker properly.
    Does LXC need additional settings to enable Docker support?

    I do not believe LXC is intended for that purpose. As the name implies, it's a container just like how Docker is also a type of container as well.

    You will either need a provider who provides Hardware Based Virtualization (think KVM as the most common, HW-Xen, Vmware and etc are options too though). Or you could "risk" yourself with a OpenVZ provider who got the proper kernel installed.

  • NeoonNeoon Community Contributor, Veteran

    By default nested virt is disabled, which you need for docker.
    Especially if its a privileged container, you should not enable it.

    Thanked by 2Havy tjn
Sign In or Register to comment.