我正在尝试在Ubuntu 16.04上配置Docker(版本为17.03.1-ce),使用配置文件/etc/docker/daemon.json添加一个主机:
{
"debug": true,
"hosts": ["tcp://0.0.0.0:1234", "unix:///var/run/docker.sock"],
"dns" : ["8.8.8.8","8.8.4.4"]
}
尝试重启 Docker 时失败
#service docker restart
Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.
查看 systemctl status docker.service 的状态:
Starting Docker Application Container Engine...
docker-slave-ubuntu-build dockerd[24806]: unable to configure the Docker daemon with file /etc/docker/daemon.json:
the following directives are specified both as a flag and in the configuration file:
hosts: (from flag: [fd://], from file: [tcp://0.0.0.0:4243 unix:///var/run/docker.sock])
我在哪里可以移除提到的标志?我必须修改维护者的脚本吗?