Short tips how to install and use Docker on Ubuntu Server 16.04
Install Docker engine
1 2 3 4 5 |
sudo apt-get update sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D sudo apt-add-repository 'deb https://apt.dockerproject.org/repo ubuntu-xenial main' sudo apt-get update sudo apt-get install docker-engine |
Check installation
1 |
sudo systemctl status docker |
Status should be displayed as Active
Use
1 2 3 |
docker run hello-world docker run -it ubuntu exit |