docker安装后启动失败解决方法

执行systemctl start docker时出现了以下错误:

[root@localhost ~]# 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.

解决方法:

[root@localhost ~]# 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.

你可能感兴趣的:(docker)