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
Use a script to install Docker
1, get the latest version of the Docker installation package
w3cschool@w3cschool:~$ sudo apt-get update
w3cschool@w3cschool:~$ sudo apt-get install -y docker.io
2, start docker background service
w3cschool@w3cschool:~$ sudo service docker start