๐Docker / Docker Compose + Dockge Setup Guide (Debian 12 Bookworm)
Prerequisites
- Debian Bookworm
- Root or sudo privileges
- Internet access
1. ๐ Update the System
apt update && apt upgrade -y2. ๐ฆ Install Dependencies
apt install apt-transport-https ca-certificates curl software-properties-common gnupg2 -y3. ๐ Add Docker GPG Key and Repository
Note:
apt-keyis deprecated. A better method is to store the key in/etc/apt/keyrings/, but this follows the legacy method used in the original steps.
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
echo "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list4. ๐ณ Install Docker Engine + Compose Plugin
apt update && apt install docker-ce -yThis installs:
- Docker Engine
- Docker CLI
- Docker Compose plugin (
docker compose) - Supporting packages like
containerd.io,iptables, etc.
5. ๐ Enable Docker on Boot
systemctl enable docker6. ๐งฑ (Optional) Install Legacy docker-compose Binary
curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
docker-compose --version7. ๐ Set Up Dockge (Docker Container Manager)
mkdir -p /opt/stacks /opt/dockge
cd /opt/dockge
curl https://raw.githubusercontent.com/louislam/dockge/master/compose.yaml --output compose.yaml
docker compose up -dThis:
- Creates project directories
- Downloads the
compose.yamlfor Dockge - Deploys Dockge using Docker Compose
Once running, Dockge will be available via Docker (check docker ps for ports).
โ Result
- Docker installed and running
- Docker Compose (v1 and plugin) available
- Dockge deployed and managing stacks under
/opt/stacks
๐ก Notes
- If
apt-keyshows a deprecation warning, consider migrating the key to/etc/apt/keyrings/docker.gpgand referencing that path in the.listfile. - Dockge stores stacks in
/opt/stacks. You can start new apps here using Dockge's web UI. - Port for Dockge is defined in the
compose.yaml.