- On the Proxmox host, edit /etc/modules-load.d/modules.conf to add these modules:
aufs
overlay
- Reboot or load the modules using modprobe:
modprobe aufs
modprobe overlay
- Create a unprivilegd container in Proxmox, don't start it
- Go to the container options and enable the features nesting and keyctl or manually this line to the config file:
features: keyctl=1,nesting=1
- Start the container
- Install required software
sudo apt update && apt upgrade -y
sudo apt install apt-transport-https ca-certificates curl gnupg2 software-properties-common
7a. apt config for debian
curl -fsSL download.docker.com/linux/debian/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"
7b. apt config for ubuntu
curl -fsSL download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- Install the docker software
sudo apt update
sudo apt install docker-ce docker-ce-cli containerd.io docker-compose
- Running and managing docker containers requires sudo privileges. If you don’t want to type sudo for every commmand, add your current user to the docker group.
sudo usermod -aG docker ${USER}