Logo

Armand.nz

Home / About / Linkedin / Github

LXC docker host setup on ProxMox

#lxc #linux #proxmox |

Homelab Docker Host setup on ProxMox LXC

System Requirements:

Enable nesting features in the Proxmox VE Container Configuration

  1. The /etc/pve/lxc/<CTID>.conf files stores container configuration, where CTID is the numeric ID of the given container.
# On the proxmox server  
# e.g. where my LXC ID is 101  

nano /etc/pve/lxc/101.conf  
  1. insert at the bottom of the file:
features: keyctl=1,nesting=1  
  1. Reboot container

  2. Install useful tools

# Run as root  
apt update  
apt install -y dnsutils net-tools sudo jq  
  1. Install Docker
# Run as root  
apt-get update  
sudo apt-get remove docker docker-engine docker.io containerd runc  
sudo apt-get -y install
apt-transport-https 
ca-certificates 
curl
gnupg  
lsb-release  
  
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg  
  
echo  
"deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg\] https://download.docker.com/linux/debian  
$(lsb\_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null  
  
sudo apt-get update  
sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-compose  
  1. Confirm you can run a docker container:
#̲# Start Docker
sudo systemctl enable docker  

Other Tips

comments powered byDisqus

Copyright © Armand