Install docker on Debian

This is a guide on how to install docker on Debian Linux Systems

Install Guide:

  1. Install packages:

sudo apt install apt-transport-https ca-certificates curl software-properties-common gnupg2

2. Import GPG Key:

curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -

3. Add Repo:

sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"

4. Install Docker CE:

sudo apt install docker-ce

5. Verify Docker:

sudo systemctl status docker

Output should look like:

 docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2019-07-30 20:52:00 GMT; 1min 11s ago
    Docs: https://docs.docker.com

6. Add user to docker group

Optional to avoid using sudo all the time

sudo usermod -aG docker $USER

Resources

Last updated