Table of Contents:

How to Install Docker & Docker Compose on Debian 11

First lets make sure our Debian server is up to date by running the following command

sudo apt-get update && sudo apt-get upgrade

This will prompt you for your user password in order to run as super user. If you are not in your sudoers file you will need to contact your administrator or add yourself.

file you will need to contact your administrator or add yofile you will need to contact your administrator or add yoThen we need to add the Docker repository. This requires a few prerequisites.

sudo apt-get install ca-certificates curl gnupg lsb-release

Once those are successfully installed we need to add the Docker Keyring.

sudo mkdir -p /etc/apt/keyrings curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg

Now time to do the actual repo setup.

echo \ "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \ $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

And finally we update our package lists and install docker.

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

Now that Docker is installed we are going to need to install Docker-Compose. This will allow us to have a file which defines all the environment variables for us and that we can start and stop without having aliases or memorizing long Docker commands. We are also going to give it execute permissions.

sudo curl -L https://github.com/docker/compose/releases/download/1.25.3/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose sudo chmod +x /usr/local/bin/docker-compose

Now you should have a working install of Docker and Docker-Compose! You can now start setting up software such as Kanboard. Or if this is too overwhelming you can contact us and we can set up Docker, Kanboard or whatever software you need! We can even host it for you!