From 41053833dfb846c6ce21eebe8f846a472350d5cd Mon Sep 17 00:00:00 2001 From: admManuel Date: Sat, 21 Sep 2024 18:36:44 +0000 Subject: [PATCH] Add Proxmox/docker_in_lxc.md --- Proxmox/docker_in_lxc.md | 42 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 Proxmox/docker_in_lxc.md diff --git a/Proxmox/docker_in_lxc.md b/Proxmox/docker_in_lxc.md new file mode 100644 index 0000000..d2c1f2f --- /dev/null +++ b/Proxmox/docker_in_lxc.md @@ -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 +``` \ No newline at end of file