dockerlxc
From Proxmox GUI:
- expand node
- choose the “local” drive
- choose CT TEMPLATE
- click TEMPLATES
- select the latest DEBIAN (ie: debian 13 standard) and download
- still in “local” drive, click CREATE CT
- put a hostname (ie: docker-lxc)
- put password
- under TEMPLATE, choose the DEBIAN that was downloaded
- under DISKS, select “local-lvm” as storage drive
- give disk size (if possible 20GB or more)
- under CPU, give 2 cores
- under MEMORY give 2048 / 512
- under NETWORK, select DHCP or specify STATIC IP
Once the container show up, select it and change features (under OPTIONS):
- Nesting: checked
- KEYCTL: checked
- START AT BOOT: checked
Start the container
Once started, do the following from console:
apt update apt install curl -y curl -fsSL https://get.docker.com | sh
Enable SSH:
# 1. Ensure the SSH server is installed apt update && apt install openssh-server -y sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/g' /etc/ssh/sshd_config systemctl restart ssh
The DHCP IP address, check the IP from the NETWORK of the node
Note:
================================================================================
To run Docker as a non-privileged user, consider setting up the
Docker daemon in rootless mode for your user:
dockerd-rootless-setuptool.sh install
Visit https://docs.docker.com/go/rootless/ to learn about rootless mode.
To run the Docker daemon as a fully privileged service, but granting non-root
users access, refer to https://docs.docker.com/go/daemon-access/
WARNING: Access to the remote API on a privileged Docker daemon is equivalent
to root access on the host. Refer to the 'Docker daemon attack surface'
documentation for details: https://docs.docker.com/go/attack-surface/
================================================================================
dockerlxc.txt · Last modified: by jwan
