Setup and Install Docker in a Promox 7 LXC Container

Containerize all the things using Proxmox LXC. Here's how you can isntall Docker on a Proxmox LXC using a simple offical Docker script. 🐳

Setup and Install Docker in a Promox 7 LXC Container

Have you been wanting to put Nginx Proxy Manager in an LXC container? Now you can in Proxmox 7 with Debian 11 and Nesting! Sure, you could use other distros but let's keep it simple for now.

In this particular example I will use Debian 11 in the LXC container. Then I will install Docker onto it.

You can get Debian 11 by selecting your storage then clicking on CT Templates. From there go to Templates at the top.

Search for "debian" then you should be able to select it then click download. Once you setup the LXC container, all that's left to do is install Docker!

This script is the official Docker installer maintained by Docker Inc.

curl -fsSL -o

This will take a couple minutes to run and install Docker onto the LXC container.

Verify docker is running on the system

systemctl status docker

Go ahead and install Portainer on the system as a test using this command.

docker run -d \
--name="portainer" \
--restart on-failure \
-p 9000:9000 \
-p 8000:8000 \
-v /var/run/docker.sock:/var/run/docker.sock \
-v portainer_data:/data \

Final Notes and Thoughts

While this may be somewhat obscure, it works very well for homelab environments. Using LXC can save you valuable resources you'd otherwise consume using virtual machines. You will also notice your LXC backups are much smaller in size and take way less time to restore over a virtual machine.