<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[刘新修]]></title> 
<link>http://liuxinxiu.com:80/index.php</link> 
<description><![CDATA[刘新修的个人博客 (Liuxinxiu'S Blog)]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[刘新修]]></copyright>
<item>
<link>http://liuxinxiu.com:80/s//</link>
<title><![CDATA[安装docker成功后，启动docker报错，解决方法]]></title> 
<author>刘新修 &lt;admin@yourname.com&gt;</author>
<category><![CDATA[Linux/Unix]]></category>
<pubDate>Thu, 15 Oct 2020 06:37:56 +0000</pubDate> 
<guid>http://liuxinxiu.com:80/s//</guid> 
<description>
<![CDATA[ 
	<p><span style="color: rgb(51, 51, 51); font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;">安装了docker 因服务器从公网(192.168.50.60)机房迁移到内网(192.168.190.60)，更改了IP地址，环境就运行不起来了~</span></p><p style="box-sizing: border-box; outline: 0px; margin-bottom: 16px; font-size: 18px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &quot;SF UI Text&quot;, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;WenQuanYi Micro Hei&quot;, sans-serif, SimHei, SimSun; line-height: 26px !important;"><strong>输什么命令错误都是：</strong></p><p>&nbsp;</p><blockquote style="box-sizing: border-box; outline: 0px; padding: 16px 16px 0px; margin: 0px 0px 24px; border-left: 8px solid rgb(221, 223, 228); background: rgb(238, 240, 244); overflow: auto; overflow-wrap: break-word; word-break: normal; color: rgb(51, 51, 51); font-family: -apple-system, &quot;SF UI Text&quot;, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;WenQuanYi Micro Hei&quot;, sans-serif, SimHei, SimSun;"><p style="box-sizing: border-box; outline: 0px; margin-bottom: 16px; font-size: 16px; color: rgb(79, 79, 79); overflow: auto hidden; line-height: 26px; overflow-wrap: break-word;">Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?&nbsp;&nbsp;</p></blockquote><p style="margin: 10px auto; color: rgb(51, 51, 51); font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;">启动docker后执行 systemctl status docker 出现了异常，具体如下：<br style="margin: 0px; padding: 0px;" />[root@joinApp2 ~]# systemctl status docker.service<br style="margin: 0px; padding: 0px;" />● docker.service - Docker Application Container Engine<br style="margin: 0px; padding: 0px;" />Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled)<br style="margin: 0px; padding: 0px;" />Active: failed (Result: start-limit) since Thu 2016-02-25 17:26:11 CST; 16s ago<br style="margin: 0px; padding: 0px;" />Docs:<br style="margin: 0px; padding: 0px;" /><a href="http://docs.docker.com/" style="margin: 0px; padding: 0px; color: rgb(0, 0, 0);">http://docs.docker.com</a> Process: 16384 ExecStart=/usr/bin/docker daemon $OPTIONS $DOCKER_STORAGE_OPTIONS $DOCKER_NETWORK_OPTIONS $ADD_REGISTRY $BLOCK_REGISTRY $INSECURE_REGISTRY (code=exited, status=1/FAILURE)<br style="margin: 0px; padding: 0px;" />Main PID: 16384 (code=exited, status=1/FAILURE)</p><p style="margin: 10px auto; color: rgb(51, 51, 51); font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;">Feb 25 17:26:10 joinApp2 systemd[1]: Failed to start Docker Application Container Engine.<br style="margin: 0px; padding: 0px;" />Feb 25 17:26:10 joinApp2 systemd[1]: Unit docker.service entered failed state.<br style="margin: 0px; padding: 0px;" />Feb 25 17:26:10 joinApp2 systemd[1]: docker.service failed.<br style="margin: 0px; padding: 0px;" />Feb 25 17:26:11 joinApp2 systemd[1]: docker.service holdoff time over, scheduling restart.<br style="margin: 0px; padding: 0px;" />Feb 25 17:26:11 joinApp2 systemd[1]: start request repeated too quickly for docker.service<br style="margin: 0px; padding: 0px;" />Feb 25 17:26:11 joinApp2 systemd[1]: Failed to start Docker Application Container Engine.<br style="margin: 0px; padding: 0px;" />Feb 25 17:26:11 joinApp2 systemd[1]: Unit docker.service entered failed state.<br style="margin: 0px; padding: 0px;" />Feb 25 17:26:11 joinApp2 systemd[1]: docker.service failed.</p><p style="margin: 10px auto; color: rgb(51, 51, 51); font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;">当时问题没解决搁置了。</p><p style="margin: 10px auto; color: rgb(51, 51, 51); font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;">今天重新google ， 解决了问题，现在贴下解决办法</p><p style="margin: 10px auto; color: rgb(51, 51, 51); font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;">vi /etc/sysconfig/selinux<br style="margin: 0px; padding: 0px;" />把selinux后面的改为disabled，重启一波机器，再重启docker就可以了</p><p style="margin: 10px auto; color: rgb(51, 51, 51); font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;">&nbsp;</p><p style="margin: 10px auto; color: rgb(51, 51, 51); font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;"><strong>解决方法二：</strong></p><p style="margin: 10px auto; color: rgb(51, 51, 51); font-family: &quot;PingFang SC&quot;, &quot;Microsoft YaHei&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;">===================</p><p style="box-sizing: border-box; outline: 0px; margin-bottom: 16px; font-size: 18px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &quot;SF UI Text&quot;, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;WenQuanYi Micro Hei&quot;, sans-serif, SimHei, SimSun; line-height: 26px !important;">[root@master01 ~]# systemctl restart docker</p><p style="box-sizing: border-box; outline: 0px; margin-bottom: 16px; font-size: 18px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &quot;SF UI Text&quot;, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;WenQuanYi Micro Hei&quot;, sans-serif, SimHei, SimSun; line-height: 26px !important;">Job for docker.service failed because the control process exited with error code. See &quot;systemctl status docker.service&quot; and &quot;journalctl -xe&quot; for details.<br style="box-sizing: border-box; outline: 0px; overflow-wrap: break-word;" />[root@master01 ~]# systemctl status docker.service<br style="box-sizing: border-box; outline: 0px; overflow-wrap: break-word;" />● docker.service - Docker Application Container Engine<br style="box-sizing: border-box; outline: 0px; overflow-wrap: break-word;" />Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled)<br style="box-sizing: border-box; outline: 0px; overflow-wrap: break-word;" />Active: failed (Result: exit-code) since Mon 2018-01-22 23:31:10 CST; 5s ago<br style="box-sizing: border-box; outline: 0px; overflow-wrap: break-word;" />Docs: http://docs.docker.com<br style="box-sizing: border-box; outline: 0px; overflow-wrap: break-word;" />Process: 17943 ExecStart=/usr/bin/dockerd-current --add-runtime docker-runc=/usr/libexec/docker/docker-runc-current --default-runtime=docker-runc --exec-opt native.cgroupdriver=systemd --userland-proxy-path=/usr/libexec/docker/docker-proxy-current $OPTIONS $DOCKER_STORAGE_OPTIONS $DOCKER_NETWORK_OPTIONS $ADD_REGISTRY $BLOCK_REGISTRY $INSECURE_REGISTRY $REGISTRIES (code=exited, status=1/FAILURE)<br style="box-sizing: border-box; outline: 0px; overflow-wrap: break-word;" />Main PID: 17943 (code=exited, status=1/FAILURE)</p><p style="box-sizing: border-box; outline: 0px; margin-bottom: 16px; font-size: 18px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &quot;SF UI Text&quot;, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;WenQuanYi Micro Hei&quot;, sans-serif, SimHei, SimSun; line-height: 26px !important;"><br style="box-sizing: border-box; outline: 0px; overflow-wrap: break-word;" />Jan 22 23:31:09 master01 systemd[1]: Starting Docker Application Container Engine...<br style="box-sizing: border-box; outline: 0px; overflow-wrap: break-word;" />Jan 22 23:31:09 master01 dockerd-current[17943]: time=&quot;2018-01-22T23:31:09.315315148+08:00&quot; level=info msg=&quot;libcontainerd: new containerd process, pid: 17954&quot;<br style="box-sizing: border-box; outline: 0px; overflow-wrap: break-word;" />Jan 22 23:31:10 master01 dockerd-current[17943]: time=&quot;2018-01-22T23:31:10.329514525+08:00&quot; level=fatal msg=&quot;Error starting daemon: error initializing graphdriver: devmapper..._devices&#92;n&quot;<br style="box-sizing: border-box; outline: 0px; overflow-wrap: break-word;" />Jan 22 23:31:10 master01 systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE<br style="box-sizing: border-box; outline: 0px; overflow-wrap: break-word;" />Jan 22 23:31:10 master01 systemd[1]: Failed to start Docker Application Container Engine.<br style="box-sizing: border-box; outline: 0px; overflow-wrap: break-word;" />Jan 22 23:31:10 master01 systemd[1]: Unit docker.service entered failed state.<br style="box-sizing: border-box; outline: 0px; overflow-wrap: break-word;" />Jan 22 23:31:10 master01 systemd[1]: docker.service failed.<br style="box-sizing: border-box; outline: 0px; overflow-wrap: break-word;" />Hint: Some lines were ellipsized, use -l to show in full.</p><p style="box-sizing: border-box; outline: 0px; margin-bottom: 16px; font-size: 18px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &quot;SF UI Text&quot;, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;WenQuanYi Micro Hei&quot;, sans-serif, SimHei, SimSun; line-height: 26px !important;">处理方法</p><p style="box-sizing: border-box; outline: 0px; margin-bottom: 16px; font-size: 18px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &quot;SF UI Text&quot;, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;WenQuanYi Micro Hei&quot;, sans-serif, SimHei, SimSun; line-height: 26px !important;">vim /etc/sysconfig/docker-storage</p><p style="box-sizing: border-box; outline: 0px; margin-bottom: 16px; font-size: 18px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &quot;SF UI Text&quot;, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;WenQuanYi Micro Hei&quot;, sans-serif, SimHei, SimSun; line-height: 26px !important;">DOCKER_STORAGE_OPTIONS=</p><p style="box-sizing: border-box; outline: 0px; margin-bottom: 16px; font-size: 18px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &quot;SF UI Text&quot;, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;WenQuanYi Micro Hei&quot;, sans-serif, SimHei, SimSun; line-height: 26px !important;">vim /etc/sysconfig/docker</p><p style="box-sizing: border-box; outline: 0px; margin-bottom: 16px; font-size: 18px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &quot;SF UI Text&quot;, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;WenQuanYi Micro Hei&quot;, sans-serif, SimHei, SimSun; line-height: 26px !important;">OPTIONS='--selinux-enabled --log-driver=journald --signature-verification=false'</p><p style="box-sizing: border-box; outline: 0px; margin-bottom: 16px; font-size: 18px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &quot;SF UI Text&quot;, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;WenQuanYi Micro Hei&quot;, sans-serif, SimHei, SimSun; line-height: 26px !important;"># vim /etc/docker/daemon.json</p><p style="box-sizing: border-box; outline: 0px; margin-bottom: 16px; font-size: 18px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &quot;SF UI Text&quot;, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;WenQuanYi Micro Hei&quot;, sans-serif, SimHei, SimSun; line-height: 26px !important;">&#123; &quot;storage-driver&quot;: &quot;devicemapper&quot; &#125;</p><p style="box-sizing: border-box; outline: 0px; margin-bottom: 16px; font-size: 18px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &quot;SF UI Text&quot;, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;WenQuanYi Micro Hei&quot;, sans-serif, SimHei, SimSun; line-height: 26px !important;">最后重启docker</p><p style="box-sizing: border-box; outline: 0px; margin-bottom: 16px; font-size: 18px; color: rgb(77, 77, 77); overflow: auto hidden; overflow-wrap: break-word; font-family: -apple-system, &quot;SF UI Text&quot;, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, &quot;WenQuanYi Micro Hei&quot;, sans-serif, SimHei, SimSun; line-height: 26px !important;">[root@master01 ~]# systemctl restart docker</p>
]]>
</description>
</item><item>
<link>http://liuxinxiu.com:80/s//#blogcomment</link>
<title><![CDATA[[评论] 安装docker成功后，启动docker报错，解决方法]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://liuxinxiu.com:80/s//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>