阿里云主机centos7镜像安装docker的错误

使用阿里云的云主机安装了centos7的镜像后,一切都很顺利,安装成功启动的时候,报错:

Mar 13 23:43:22 iZ252r2lzs8Z systemd[1]: Starting Docker Application Container Engine...
Mar 13 23:43:22 iZ252r2lzs8Z docker[19270]: 2015/03/13 23:43:22 docker daemon: 1.3.2 39fa2fa/1.3.2; execdriver: native; graphdriver:
Mar 13 23:43:22 iZ252r2lzs8Z docker[19270]: [77b3c39a] +job serveapi(fd://)
Mar 13 23:43:22 iZ252r2lzs8Z docker[19270]: [info] Listening for HTTP on fd ()
Mar 13 23:43:22 iZ252r2lzs8Z docker[19270]: [77b3c39a] +job init_networkdriver()
Mar 13 23:43:22 iZ252r2lzs8Z docker[19270]: Could not find a free IP address range for interface 'docker0'. Please configure ...cker0'
Mar 13 23:43:22 iZ252r2lzs8Z docker[19270]: [77b3c39a] -job init_networkdriver() = ERR (1)
Mar 13 23:43:22 iZ252r2lzs8Z docker[19270]: 2015/03/13 23:43:22 Could not find a free IP address range for interface 'docker0...cker0'
Mar 13 23:43:22 iZ252r2lzs8Z systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
Mar 13 23:43:22 iZ252r2lzs8Z systemd[1]: Failed to start Docker Application Container Engine.
Mar 13 23:43:22 iZ252r2lzs8Z systemd[1]: Unit docker.service entered failed state.

因为刚不明白是什么意思,网上查找后有人说是阿里云的云主机把私有地址网段都分配了,导致docker没有办法分配私有地址,执行下面的命令

route del -net 172.16.0.0 netmask 255.240.0.0

之后再启动docker就行了。