How to Install Docker on Ubuntu 18.04

To install docker on Ubuntu 18.04 is much easier than 16.04 and before. You only run one command.

sudo apt install docker.io

You can't use the repository technique and likely you will see the below error when adding the repository at https://download.docker.com/linux/ubuntu

The repository 'http://ppa.launchpad.net/banshee-team/ppa/ubuntu bionic Release' does not have a Release file.

Docker | Install and Use

Docker is a revolutionary and disruptive technology that saves money, enhances security and encourages flexible and responsive IAAS (infrastructure as a service) architectures.

Computer scientists would say it implements the immutable infrastructure pattern, from which most of its benefits emanate.

Install Docker CE on Ubuntu 16.04 and 17.04 The simplest (most future proofed) Docker Community Edition install is to bundle the below into a script.

sudo apt-get update curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - sudo apt-key fingerprint 0EBFCD88 sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" sudo apt-get update sudo apt-get --assume-yes install docker-ce docker --version

Let’s install a Jenkins docker container to test-drive key docker features.