Installing Docker

📘

Recommendation

For Docker installation, please refer to the official Docker document found here.

OS

Ubuntu

1. Pre-installation

sudo apt-get update

sudo apt-get install \
                         apt-transport-https \
                     ca-certificates \
                     curl \
                     gnupg-agent \
                     software-properties-common

2. Add apt-key

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

3. Install docker

sudo apt-get install docker-ce docker-ce-cli containerd.io

4. Add user

sudo usermod -a -G docker $USER

After adding user, reconnect to the terminal.


Did this page help you?