Ben Chuanlong Du's Blog

And let it direct your passion with reason.

Install Docker

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.

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.

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.

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.

Comments