Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Install Docker on Debian Series of Linux Distributions

You can install Docker on Debian series of Linux distributions (Debian, Ubuntu, Linux Mint, etc.) using the following commands.

:::bash
sudo apt-get update
sudo apt-get install docker.io

Configure your docker following instructions in the section Configure Docker .

Install the Latest Version of Docker on Debian Series of Linux Distributions

You can install the latest version of Docker CE on Debian Series of Linux distributions (Debian, Ubuntu, Linux Mint, etc.) using the commands below.

:::bash
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get install docker-ce

Configure your docker following instructions in the section Configure Docker .

Install Docker in Other Operating Systems

Please refer to the offical Docker doc Install Docker on instruction to install Docker in other operating systems.

Configure your docker following instructions in the section Configure Docker .

Configure Docker

By default, the docker command requires sudo previlage to run which is a little hassle since you have to type sudo every time and type your password for sudo. It is suggested that you add yourself into the docker group so that you can run the docker command without sudo.

:::bash
sudo gpasswd -a $(whoami) docker
newgrp docker

The command newgrp docker makes the group docker take effect. You can confirm by issuing the id command. If for whatever reason the group docker does not take effect, logout and then login again to make the group docker in effect.