真实的国产乱ⅩXXX66竹夫人,五月香六月婷婷激情综合,亚洲日本VA一区二区三区,亚洲精品一区二区三区麻豆

成都創(chuàng)新互聯(lián)網(wǎng)站制作重慶分公司

docker之docker容器flannel模式多網(wǎng)段跨主機

問題一:docker無法啟動
錯誤提示:
[root@localhost docker.service.d]# systemctl status docker.service
● docker.service - Docker Application Container Engine
Loaded: error (Reason: Invalid argument)
Drop-In: /usr/lib/systemd/system/docker.service.d
└─flannel.conf
Active: failed (Result: start-limit) since Fri 2020-01-17 01:18:59 PST; 4min 57s ago
Docs: https://docs.docker.com
Main PID: 9775 (code=exited, status=1/FAILURE)

創(chuàng)新互聯(lián)成立于2013年,先為旺蒼等服務建站,旺蒼等地企業(yè),進行企業(yè)商務咨詢服務。為旺蒼企業(yè)網(wǎng)站制作PC+手機+微官網(wǎng)三網(wǎng)同步一站式服務解決您的所有建站問題。

Jan 17 01:18:56 localhost.localdomain systemd[1]: docker.service failed.
Jan 17 01:18:59 localhost.localdomain systemd[1]: docker.service holdoff time over, scheduling restart.
Jan 17 01:18:59 localhost.localdomain systemd[1]: Stopped Docker Application Container Engine.
Jan 17 01:18:59 localhost.localdomain systemd[1]: start request repeated too quickly for docker.service
Jan 17 01:18:59 localhost.localdomain systemd[1]: Failed to start Docker Application Container Engine.
Jan 17 01:18:59 localhost.localdomain systemd[1]: Unit docker.service entered failed state.
Jan 17 01:18:59 localhost.localdomain systemd[1]: docker.service failed.
Jan 17 01:20:37 localhost.localdomain systemd[1]: docker.service has more than one ExecStart= setting, wh...ing.
Jan 17 01:21:34 localhost.localdomain systemd[1]: docker.service has more than one ExecStart= setting, wh...ing.
Jan 17 01:23:46 localhost.localdomain systemd[1]: docker.service has more than one ExecStart= setting, wh...ing.
Hint: Some lines were ellipsized, use -l to show in full.
docker之docker容器flannel模式多網(wǎng)段跨主機
解決:
升級內(nèi)核:
[root@localhost docker.service.d]# yum update -y
升級完成后,卸載舊版本,重新安裝docker-ce。
[root@localhost docker.service.d]# rpm -qa |grep docker-ce
docker-ce-19.03.5-3.el7.x86_64
docker-ce-cli-19.03.5-3.el7.x86_64
[root@localhost docker.service.d]# rpm -e --nodeps docker-ce-19.03.5-3.el7.x86_64
[root@localhost docker.service.d]# rpm -e --nodeps docker-ce-cli-19.03.5-3.el7.x86_64
[root@localhost docker.service.d]# yum install -y docker-ce-*

[root@localhost docker.service.d]# systemctl start docker

[root@localhost docker.service.d]# systemctl status docker
docker之docker容器flannel模式多網(wǎng)段跨主機
docker正常啟動?。。?!
反思:是否可以先安裝flannel,再按照docker-ce,是否會出現(xiàn)類似的情況?待測試!?。。?/p>

問題二:docker、flannel正常啟動,但docker0無法獲取地址池地址。
docker之docker容器flannel模式多網(wǎng)段跨主機
解決:
修改/usr/lib/systemd/system/docker.service文件
[root@localhost docker.service.d]# vim /usr/lib/systemd/system/docker.service
添加以下內(nèi)容:
在ExecStart=/usr/bin/dockerd后添加$DOCKER_NETWORK_OPTIONS
在[server]最后添加
EnvironmentFile=/run/flannel/docker
docker之docker容器flannel模式多網(wǎng)段跨主機
重新啟動docker
[root@localhost docker.service.d]# systemctl daemon-reload
[root@localhost docker.service.d]# systemctl restart docker.service
[root@localhost docker.service.d]# ifconfig
docker之docker容器flannel模式多網(wǎng)段跨主機
docker0正常獲取flannel地址池。


標題名稱:docker之docker容器flannel模式多網(wǎng)段跨主機
標題URL:http://weahome.cn/article/ihgcgh.html

其他資訊

在線咨詢

微信咨詢

電話咨詢

028-86922220(工作日)

18980820575(7×24)

提交需求

返回頂部