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 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 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.
Advertenties

Geef een reactie

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

WordPress.com logo

Je reageert onder je WordPress.com account. Log uit /  Bijwerken )

Google+ photo

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

Twitter-afbeelding

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

Facebook foto

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

Verbinden met %s