Docker is intended to be a docker, that is, a porter. This kind of Porter is carrying a container. The container is not carrying goods, but any type of app, docker installs the app (called payload) in the container, and converts the app into a standardized, portable, and self-managed component through the packaging of the Linux container technology, this type of component can be developed, debugged, and run on your latop, and finally run in a production environment conveniently and consistently.
What is docker? Please find your own information. It can be said that it is a powerful O & M tool. You can encapsulate your app into an image. As long as the other party has docker, I can directly push the image to the other side for Fast deployment.
When using docker, the kernel is generally more than 3.8, and Ubuntu is officially recommended. The development machines on my side are also Ubuntu, so to some extent, centos5 is not required, 6. x, the kernel is upgraded.
Original article: http://rfyiamcool.blog.51cto.com/1030776/1431935
As for the installation of docker, It is very simple, but the source of docker configuration will always be disconnected, or it will be blocked.
In this case, we use a proxy. You can use an HTTP Proxy like http_proxy or a tsocks to reference the proxy. However, tsocks does not support docker pull Ubuntu, so the http_proxy parameter of docker is used directly.
Sudo http_proxy = proxy_server: Port docker-D &
Or configure the system's proxy.
Export https_proxy = http: // 1.1.1.1: 8888/
Export http_proxy = http: // 1.1.1.1: 8888/
$ sudo apt-get update$ sudo apt-get install docker.io$ sudo ln -sf /usr/bin/docker.io /usr/local/bin/docker$ sudo sed -i ‘$acomplete -F _docker docker‘ /etc/bash_completion.d/docker.io
$ sudo sh -c "echo deb https://get.docker.io/ubuntu docker main> /etc/apt/sources.list.d/docker.list"$ sudo apt-get update$ sudo apt-get install lxc-docker
It is easy to use.
Here is the download Image
Docker pull Ubuntu
Here is the interaction mode
Sudo docker run-I-t Ubuntu/bin/bash
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/37/C0/wKioL1OuhBPBVhqpAAD2mJEFyOU666.jpg "Title =" 16:55:30 screen .png "alt =" wkiol1ouhbpbvhqpaad2mjefyou666.jpg "/>
View all your images
Docker Images
Running status
Docker PS-l
Docker PS-
The official docker website provides a demo page for you to test.
Http://www.docker.com/tryit/
In general, the image is very slow. You can make it by yourself or reference another person's image.
Cat centos_xiaorui.cc.tar | sudo docker import-xiaorui: New
Original article: http://rfyiamcool.blog.51cto.com/1030776/1431935
[Email protected]: ~ # Docker info
09:21:11 cannot connect to the docker daemon. Is 'docker-d' running on this host?
After the restart, you will encounter the above situation, directly kill-9 the existing PID.
Continue later !!! (Docker network, API, and Web Management)
This article is from "Fengyun, it's her ." Blog, declined to reprint!