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