Installing Docker on Linux

To install the latest Docker version on a Linux machine, perform the following steps:

  1. Update your apt packages index by using the following command:
$ sudo apt-get update   
  1. After updating apt package, let's start the docker-engine installation by using the following command:
 $ sudo apt-get install docker-engine   
  1. The preceding command will install Docker on your Linux machine. Now let's start the Docker daemon by using the following command:
$ sudo service docker start  
  1. You can test Docker on your machine by using the following command:
$ sudo docker run hello-world   

The preceding command verifies that Docker is installed correctly by running the hello-world image; this command downloads a test image and ...

Get Mastering Spring Boot 2.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.