in need to install easypanel, i have just installed a debian lxc on my proxmox host,…
- User
in need to install easypanel, i have just installed a debian lxc on my proxmox host, please give me detailed step by step instuctions
- Assistant
in need to install easypanel, i have just installed a debian lxc on my proxmox host, please give me detailed step by step instuctions
Detailed Step-by-Step Instructions to Install Easypanel on a Debian LXC Container in Proxmox
Prerequisites:
Docker requires certain kernel features and permissions that are not enabled by default in unprivileged LXC containers. We'll modify the container configuration to enable these features.
On your Proxmox host shell, stop the LXC container. Replace <CTID> with your container ID.
pct stop <CTID>
Edit the container's configuration file located at /etc/pve/lxc/<CTID>.conf.
nano /etc/pve/lxc/<CTID>.conf
Add or modify the following lines:
# Enable nesting (required for containers within containers)
features: nesting=1
# Allow keyctl (Key management) operations inside the container
features: keyctl=1
# Unconfine AppArmor profile
lxc.apparmor.profile: unconfined
# Allow all devices
lxc.cgroup.devices.allow: a
# Retain all capabilities
lxc.cap.drop:
# Allow mounting of cgroups
lxc.mount.auto: cgroup:rw
# Optional: Set security settings
lxc.seccomp.profile: unconfined
Explanation of the configurations:
Save and exit the editor (Ctrl + O, Enter, then Ctrl + X in nano).
pct start <CTID>
We'll install Docker following the official installation guidelines, with slight modifications for the LXC environment.
pct enter <CTID>
You are now inside the container.
apt update
apt install -y \
ca-certificates \
curl \
gnupg \
lsb-release \
software-properties-common \
apt-transport-https
mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
chmod a+r /etc/apt/keyrings/docker.gpg
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] \
https://download.docker.com/linux/debian \
$(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
apt update
If you encounter a NO_PUBKEY error, you might need to manually specify the keyserver:
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys <KEY_ID>
But the above steps with keyrings should usually suffice.
apt install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
docker run hello-world
You should see a message indicating that Docker is installed correctly.
Note: If you encounter any errors related to cgroups or permissions, ensure that the container configuration was correctly modified in Part 1.
Easypanel is installed via a script provided by the Easypanel team.
For security reasons, it's a good idea to download the script first and review it before executing.
Download the script:
curl -sSL https://get.easypanel.io -o install-easypanel.sh
Review the script (optional but recommended):
nano install-easypanel.sh
Run the installation script:
bash install-easypanel.sh
The installer may prompt you for:
If you don't already know the container's IP address, find it:
ip addr show
Look for the inet address under your network interface (e.g., eth0).
On your local machine:
http://<container-IP> or https://<your-domain> if you set up a domain.venet), you may need to set up port forwarding from the Proxmox host to the container.A or AAAA records point to your server.If you encounter permission errors when running Docker commands:
Keep System Updated: Regularly update the container's packages.
apt update && apt upgrade -y
Update Docker Images and Containers: Use Easypanel's interface to manage updates.
Backup Data: Regularly back up applications and data.
Congratulations! You have successfully installed Easypanel on your Debian LXC container in Proxmox. You can now deploy and manage your applications with ease.
References:
If you have any further questions or need assistance with specific steps, feel free to ask!
Not yet included in a published release.