About Centos7 install Docker, as a beginner Baidu a lot, deeply feel the gap between Baidu and Google, Baidu encountered a variety of errors, basically and that a wall about, no way, directly search English documents, before installation, the following steps:
The original URL is http://www.liquidweb.com/kb/how-to-install-docker-on-centos-7/
Step 1:installation of Docker
As a matter of best practice we ' ll update our packages://Update your package
yum -y update // 安装命令1
Now let's install Docker by installing the Docker-io Package://Installation via Docker-io pack
yum -y install docker docker-registry //安装命令2
Step 2:start Docker and make sure Docker starts on Boot
Set the Docker service to start on boot://Set to boot (do not know if there are any wooden translation pairs)
systemctl enable docker.service //安装命令3
Then start the Docker service://Start Docker Services
systemctl start docker.service //安装命令4
and verify your work by checking the status of Docker://View docker status
systemctl status docker.service //命令5
Step 3:download a docker Container//download Docker Container
Let ' s begin using docker! Download the CentOS Docker Image://start using Docker to download the CentOS Docker image
docker pull centos //下载ceneos命令 注意:下载时候这句命令可能会因为网络原因报错,你要多试几次,等一等
Step 4:run a Docker Container//Run
Now, to the setup a basic <reference_page_text>centos container with a bash shell, we just run one command. <reference_page_text>docker run would run a command in a new container, <reference_page_text>-i attaches stdin And stdout, <reference_page_text>-t allocates a TTY, and we ' re using the Standard<reference_page_text>fedora Container.
docker run -i -t centos /bin/bash //基本完成了到了这一步,这是打开,关闭使用exit这个单词命令就可以
That ' s it! You ' re now using a bash shell inside of a CentOS docker container.
To disconnect, or detach, from the shell without exiting use the escape sequence ctrl-p + ctrl-q.
There is many community containers already available, which can be found through a search. The command below I am searching for the keyword <reference_page_text>centos:
docker search centos //这个是查询,失败了无所谓了,上面的步骤已经完毕了
If the error is reported, it is likely that your CentOS kernel has not been upgraded
http://blog.csdn.net/jiangzhengdong/article/details/8036594 This is the upgrade URL
http://www.linuxidc.com/Linux/2014-07/104768.htm Other references
Advance environmental Preparation and Epel Http://www.tuicool.com/articles/umQnQf reference
Thank you for the information sharing, there is insufficient place please treatise, thank
Centos7 Installing Docker steps