Installing Docker on Ubuntu

Source: Internet
Author: User
Tags docker ps docker run

1. The system I am preparing for is:

[Email protected]:~# uname-a
Linux ubuntu 4.2.0-27-generic #32 ~14.04.1-ubuntu SMP Fri Jan 15:32:26 UTC x86_64 x86_64 x86_64 gnu/linux

2. Ready to install Docker
Install docker using the Apt-get command:
$ apt-get Install Docker.io

3. Pull this image to the warehouse Hello-world

Docker Pull Hello-word

4, start the container, print out the information indicates that the start is complete. Front start

Docker Run Helle-world

Background Startup example:

--Start 80 of the 8080 to container outside the specified port mapping relationship
Docker run-d-P 8080:80 Hub.c.163.com/library/nginx

--Start open all ports random corresponding container ports can be viewed via Docker PS
Docker run-d-P Hub.c.163.com/library/nginx

--Basic commands must be mastered.

Docker pull
Docker images
Docker run
Docker Build
Docker PS
Docker exec
Docker start
Docker stop
Docker restart

Installing Docker on Ubuntu

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.