(Original) docker Installation

Source: Internet
Author: User

All methods on the Internet are reproduced and broken... Step by step .. The tutorial sequence on the official website is incorrect .. Pitfall

1. PS:
This command is not downloaded from docker...
This: sudo apt-Get install docker
I don't know what it is, so I unmount it:
$ Sudo apt-Get remove docker & sudo apt-Get autoremove

2. Refer to self-https://docs.docker.com/installation/ubuntulinux,
However, this method is reliable:
$ Curl-SSL https://get.docker.com/ubuntu/ | sudo sh

3. The installation is complete.
$ Docker-H
$ PS aux | grep docker

4. Start docker at this time:
$ Sudo docker-d
To check whether the instance can be started normally, press Ctrl + C to stop the instance. Then:
$ Sudo service docker start
If the instance cannot be started properly, check the error message, for example:
16:56:56 error loading docker apparmor profile: fork/exec/sbin/apparmor_parser: no such file or directory ()
The solution to this problem is:
$ Sudo apt-Get install apparmor

5. Download an Ubuntu image:
$ Sudo docker search Ubuntu # Check which ones are available
$ Sudo docker pull Ubuntu # download

6. Commands
Reference self-http://www.cnblogs.com/linjiqin/p/3625609.html
See "5. Common docker commands"

$ Sudo docker run Ubuntu/bin/ECHO Hello World
Sudo docker run Ubuntu pwd
Sudo docker run Ubuntu PS-
Sudo docker PS-
Sudo docker start 69154ae1b350
Sudo docker logs 69154ae1b350

Interaction Mode:
$ Sudo docker run-I-t Ubuntu

(Original) docker Installation

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.