Add Proxmox/docker_in_lxc.md

This commit is contained in:
2024-09-21 18:36:44 +00:00
parent 4c26bce212
commit 41053833df

42
Proxmox/docker_in_lxc.md Normal file
View File

@@ -0,0 +1,42 @@
# Install Fuse on Proxmox Host
```bash
apt clean && apt update
apt install -y fuse-overlayfs
```
# Options for LXC
Enable 'keyctl', 'Nesting', and 'FUSE'
# Install Fuse in the LXC
```bash
apt clean && apt update
apt install -y fuse-overlayfs
ln -s /usr/bin/fuse-overlayfs /usr/local/bin/fuse-overlayfs
```
# Install docker from official documentation
```bash
# Ensure pre-requisites are installed
apt install -y ca-certificates curl gnupg lsb-release
# Add Docker GPG key
mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
# Add Docker apt repository
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
# Update sources and install Docker Engine
apt update
apt install -y docker-ce docker-ce-cli containerd.io docker-compose docker-compose-plugin
# Test for successful installation
docker run hello-world
# Enable the Docker engine to start at boot
systemctl enable docker
```