docker not start

Background: I want to change the ip address docker0, so in /etc/docker/daemon.json files Riga [bip].

{
  "registry-mirrors": ["https://f61bammj.mirror.aliyuncs.com","https://registry.docker-cn.com"],
  "bip": "10.1.0.0/24"
}

Then start docker on the following mistakes.

# systemctl status docker.service
docker.service - Docker Application Container Engine
   Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
   Active: failed (Result: start-limit) since Tue 2017-11-14 20:52:23 UTC; 6min ago
     Docs: https://docs.docker.com
  Process: 1661 ExecStart=/usr/bin/dockerd (code=exited, status=1/FAILURE)
 Main PID: 1661 (code=exited, status=1/FAILURE)

Analysis: IP ( "10.1.0.0/24") is not legitimate.

Solution:

  • Delete / var / lib / docker. (Rm -rf / var / lib / docker)
  • 删除/var/run/docker。(rm -rf /var/run/docker)
  • Changed to "10.1.0.0/16"
  • Reboot the system

Note: Delete / var / lib / docker, will delete all of your mirror! ! !

c / c ++ mutual learning QQ group: 877 684 253

I micro letter: xiaoshitou5854

Guess you like

Origin www.cnblogs.com/xiaoshiwang/p/11982947.html