1. 程式人生 > >docker安裝後啟動失敗解決方法

docker安裝後啟動失敗解決方法

執行systemctl start docker時出現了以下錯誤:

[[email protected] ~]# systemctl start docker
Job for docker.service failed because the control process exited with error code. See "syste
mctl status docker.service" and "journalctl -xe" for details.

解決方法:

[[email protected] ~]# vi /etc/sysconfig/docker

OPTIONS='--selinux-enabled --log-driver=journald --signature-verification=false --bip=172.17.42.1/16

在OPTIONS='--selinux-enabled --log-driver=journald --signature-verification=false 後加上--bip=172.17.42.1/16

再次執行systemctl start docker即可成功啟動docker.