
Ah, containers. Well, gotta have them these days, I guess.
Install Docker, etc.
- Install docker on Debian
- keys and apt.sources file
- Install various parts
# Add Docker's official GPG key:
sudo apt update
sudo apt install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
# Add the repository to Apt sources:
sudo tee /etc/apt/sources.list.d/docker.sources <<EOF
Types: deb
URIs: https://download.docker.com/linux/debian
Suites: $(. /etc/os-release && echo "$VERSION_CODENAME")
Components: stable
Architectures: $(dpkg --print-architecture)
Signed-By: /etc/apt/keyrings/docker.asc
EOF
sudo apt update
sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
sudo systemctl start docker
sudo systemctl enable docker
See how it's going:
sudo systemctl status docker

Docker compose
This just adds the ability to do configs from a YAML file. Helpful. Also already installed above in the default install
User to docker group
sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker
No longer need sudo for docker actions.
DockerGE
This is a simple web interface to docker compose.
sudo mkdir -p /opt/dockge /opt/stacks
sudo chown -R $USER:$USER /opt/dockge
cd /opt/dockge
create dockerge yaml
cat << 'EOF' > /opt/dockge/compose.yaml
services:
dockge:
image: louislam/dockge:1
restart: unless-stopped
ports:
- 5001:5001
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./data:/app/data
- /opt/stacks:/opt/stacks
environment:
- DOCKGE_STACKS_DIR=/opt/stacks
EOF
Bring up the dockerge
docker compose up -d
- Visit http://localhost:5001/
Make docker relaunch apps on restart
sudo mkdir -p /etc/docker
echo '{"live-restore": true}' | sudo tee /etc/docker/daemon.json
sudo systemctl reload docker