Ubuntu Docker Installation
Docker supports the following Ubuntu versions:
- Ubuntu Precise 12.04 (LTS)
- Ubuntu trusty 14.04 (LTS)
- Ubuntu Wily 15.10
- Other updated versions ...
Prerequisite Conditions
Docker requires the kernel version of the Ubuntu system to be above 3.10, check the prerequisites on this page to verify that your Ubuntu version supports Docker. View your current kernel version through the UNAME-R command
runoob@runoob:~$ Uname-r
Using scripts to install Docker
1, get the latest version of the Docker installation package
runoob@runoob:~$ wget-qo- https://get.docker.com/ | sh
When you enter the password for the current user, the script is downloaded and the Docker and dependent packages are installed.
After the installation is complete, there is a prompt:
If you are would like Docker as a non-root user, your should now consider
Adding your user to the "Docker" group with something like:
sudo usermod-ag Docker Runoob
Remember that you'll have to log out and then in the to take effect!
When you want to run Docker directly with a non-root user, you need to perform the sudo usermod-ag Docker runoob command, and then log back in, or there will be the following error
2, start Docker background service
runoob@runoob:~$ sudo service docker start
3. Test Run Hello-world
runoob@runoob:~$ Docker Run Hello-world
The above is the entire content of this article, I hope to help you learn, but also hope that we support the cloud habitat community.