Install Docker CE on Ubuntu 16.04

Get Docker for Ubuntu describes the minimal installation of Docker CE on Ubuntu 16.04. The following instructions are a summary of those instructions, and additionally:

  1. start docker on system start
  2. add the current user to the docker group
  3. install basic build tools such as gcc and make
  4. install the latest docker-compose using pip
sudo apt install -y curl software-properties-common
curl -fsSL | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
sudo add-apt-repository \
   "deb [arch=amd64] \
   $(lsb_release -cs) \
sudo apt-get update
sudo apt-get install -y docker-ce
sudo systemctl enable docker
sudo gpasswd -a ${USER} docker
sudo apt install -y build-essential
sudo apt install -y python3-pip
pip3 install docker-compose

Note that the fingerprint should include the following code

sub 4096R/F273FCD8 2017-02-22

Logout and login and check

docker-compose -v
docker run hello-world

This should result in the following output:

$ docker-compose -v
docker-compose version 1.12.0, build b31ff33
$ docker run hello-world

Hello from Docker!
This message shows that your installation appears to be working correctly.

etc. etc.

Geef een reactie

Vul je gegevens in of klik op een icoon om in te loggen. logo

Je reageert onder je account. Log uit /  Bijwerken )

Google photo

Je reageert onder je Google account. Log uit /  Bijwerken )


Je reageert onder je Twitter account. Log uit /  Bijwerken )

Facebook foto

Je reageert onder je Facebook account. Log uit /  Bijwerken )

Verbinden met %s