- Front-mounted Installation
To insure that your system is 64-bit
$ sudo apt-get install apt-transport-https ca-certificates Curl Software-properties-common
- Add Docker official GPG key
$ Curl-fssl HTTPS://DOWNLOAD.DOCKER.COM/LINUX/UBUNTU/GPG | sudo apt-key add-
Verify key
$ sudo apt-key fingerprint 0ebfcd88
Make sure that key fingerprint is:9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88
- Install the Warehouse
$ sudo add-apt-repository "Deb [ARCH=AMD64] Https://download.docker.com/linux/ubuntu $ (LSB_RELEASE-CS) Stable "
- Installing Docker
$ sudo apt-get update$ sudo apt-get install Docker-ce
- Test Doker
$ sudo docker run Hello-world
The following output indicates that the installation was successful:
Unable to find image ' hello-world:latest ' locally
Latest:pulling from Library/hello-world
78445dd45222:pull Complete
Digest:sha256:c5515758d4c5e1e838e9cd307f6c6a0d620b5e07e6f927b07d05f6d12a1ac8d7
status:downloaded newer image for Hello-world:latest
Hello from docker!
This message shows the your installation appears to be working correctly.
To generate this message, Docker took the following steps:
1. The Docker client contacted the Docker daemon.
2. The Docker daemon pulled the "Hello-world" image from the Docker Hub.
3. The Docker daemon created a new container from that image which runs the
Executable that produces the output is currently reading.
4. The Docker daemon streamed that output to the Docker client, which sent it
to your terminal.
To try something + ambitious, you can run a Ubuntu container with:
$ docker run-it Ubuntu bash
Share images, automate workflows, and more with a free Docker ID:
https://cloud.docker.com/
For more examples and ideas, visit:
https://docs.docker.com/engine/userguide/
PS: This article applies to AMD64-bit Ubuntu system
Ubuntu 16.04 Installation Docker