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