Lundebakkevej 5, 4684 Holmegaard

Basic install of Docker on Ubuntu 18.04

For this docker install on Ubuntu I will go for the official repository – the real benefit is that any patches or new versions will be updated with the package manager, and dependencies are handled by apt instead of me.

First make sure we are up to date on our package list

$ sudo apt update

Then configure apt to enable packages over https and add the gpg key for docker repository last but not least add the repository and update the local cache with the new repository

$ sudo apt install apt-transport-https ca-certificates curl software-properties-common
$ curl -fsSL | sudo apt-key add -
$ sudo add-apt-repository "deb [arch=amd64] bionic stable"
$ sudo apt update

Install the docker_ce package and make sure services start automatically

$ sudo apt install docker-ce
$ sudo systemctl enable docker
$ sudo systemctl start docker