Ubuntu Docker Installation Tutorial _docker

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.