Running A Docker Host in a Proxmox VE LXC Linux Container (CT)
i12bretro
#Proxmox #Docker #LXC
Full steps can be found at https://i12bretro.github.io/tutorials/0595.html
Creating the Container
- Log into the Proxmox VE web UI
- Select a storage device from the left navigation that allows storing Container templates
- Select CT Templates from the left sub-navigation menu
- Click the Templates button
- Search for core ≫ Click TurnKey Core to select it ≫ Click the Download button
- After the download completes, close the download dialog
- Right click the Proxmox node name ≫ Create CT
- Enter the Hostname Docker, Password and Confirm the password ≫ Next
- Select the Storage where the container template was downloaded and select the TurnKey Core container template ≫ Click Next
- Set the Storage device to save the container to ≫ Click Next
- Leave the defaults on the CPU tab ≫ Next
- On the Memory tab, set the Memory to 2048 ≫ Next
- Leave the defaults on the Network tab, setup a static IP address if needed (I prefer to set this from my router) ≫ Next
- Leave the defaults on the DNS tab ≫ Next
- Verify the summary and click Finish
- After the container creation completes, close the download dialog
- Right click the Docker LXC container in the left navigation pane ≫ Start
- Click console in the left sub-navigation menu
Installing Updates and Docker
- Log into the container with the username root and the password set during the setup
- On the Initialize Hub services dialog, press tab and select Skip ≫ Press Enter
- On the System Notifications dialog, press tab and select Skip ≫ Press Enter
- On the Security updates dialog, press tab to select Install to enable automatic updates or Skip ≫ Press Enter
- Press Enter to select Advanced Menu
- Arrow down and select Quit ≫ Press Enter ≫ Select Yes to confirm ≫ Press Enter
- Run the following commands to install updates
update software repositories
apt updateinstall available software updates
apt upgrade -yclean apt cache
apt cleanreboot the container
reboot now - Log back into the container
- Run the following commands to install Docker
install prerequisites
apt install apt-transport-https ca-certificates curl gnupg2 software-properties-common -yadd docker gpg key
curl -fsSL https://download.docker.com/linux/$(awk -F'=' ' ... https://www.youtube.com/watch?v=q98XUBf2YO4
2021-12-13
0.11164683 LBC
Copyrighted (contact publisher)
39005467 Bytes