Ubuntu Docker installation

Docker supports the following version of Ubuntu:

  • Ubuntu Precise 12.04 (LTS)
  • Ubuntu Trusty 14.04 (LTS)
  • Ubuntu Wily 15.10
  • Other updated versions...


Prerequisites

Docker requires the kernel version of the Ubuntu system to be higher than 3.10, and check the prerequisites on this page to verify that your Ubuntu version supports Docker.

View your current kernel version with the uname -r command

w3cschool@w3cschool:~$ uname -r

Ubuntu Docker installation


Use a script to install Docker

1, get the latest version of the Docker installation package

w3cschool@w3cschool:~$ sudo apt-get update

Ubuntu Docker installation

w3cschool@w3cschool:~$ sudo apt-get install -y docker.io
Ubuntu Docker installation


2, start docker background service

w3cschool@w3cschool:~$ sudo service docker start

Ubuntu Docker installation