Files
notes/documents/docker/docker_install_lxc/content.md
2024-08-10 00:38:32 -05:00

555 B
Executable File

docker_install_lxc

Run as root

Create unprivileged container with fuse enabled

Install required packages

apt update && apt upgrade -y
apt install -y curl fuse-overlayfs

Install docker

curl -fsSL https://get.docker.com | sh

Configure fuse driver for docker

cat <<EOF >/etc/docker/daemon.json 
{
  "storage-driver": "fuse-overlayfs"
}
EOF
systemctl restart docker.service

Download and run essentials script Log in as akanealw and switch to root

adduser akanealw docker

Relog as akanealw