Setting up Docker in LXC container on Proxmox
Proxmox doesn’t natively support Docker, the suggested way of running Docker on Proxmox is to setup a VM for it, however running it in LXC can offer a slight performance boost, even if it does feel a bit odd having containers in containers.
First create a container with the “Create CT” button at the top right. Here you can mostly use the default settings, choose your password, your template, your memory limit etc. Don’t start the container after creating it.
In the options for the container edit “Features” and enable “keyctl” and “nesting”.
Finally, on your Proxmox host run
sysctl -w net.ipv4.ip_forward=1 and uncomment
net.ipv4.ip_forward=1 in /etc/sysctl.conf.
You can now start the container, SSH in or open the console and run through the standard Docker installation.