Skip to content

Docker

Note

Installation instructions sourced from Docker's official site.

Add Docker's apt repository:

# 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

Install the Docker packages:

sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

Verify that the Docker Engine installation is successful by running the hello-world image:

sudo docker run --name hello-world-container hello-world

Once confirmed working, remove the hello-world container by running:

sudo docker rm hello-world-container

Install Dockge

Note

Installation instructions sourced from Dockge's official site.

I like to run Dockge to manage my containers.

First, create an application directory and a directory to store the container configs. Then change into the application directory:

sudo mkdir -p /opt/stacks /opt/dockge
cd /opt/dockge

Download the compose file into this new directory:

sudo curl https://dockge.kuma.pet/compose.yaml --output compose.yaml

Start dockge:

sudo docker compose up -d

You can check to see whether the Dockge Server container has started by running:

sudo docker ps

Now that the installation is complete, you can log into your Dockge Server instance by opening a web browser and navigating to:

https://<ipaddress>:5001

You will then be required to create a new user.