无法用文件/etc/docker/daemon.jsonconfigurationDocker守护进程:EOF

我是docker工人,并不能理解这些错误。 所以,请让我知道是否需要更多的信息。

`$ docker --version` Docker version 1.12.6, build 88a4867/1.12.6 `$ docker info` Cannot connect to the Docker daemon. Is the docker daemon running on this host? `$sudo dockerd` FATA[0000] unable to configure the Docker daemon with file /etc/docker/daemon.json: EOF `$sudo systemctl start docker` Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details. `$sudo systemctl status docker.service -l` ● docker.service - Docker Application Container Engine Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled) Active: failed (Result: exit-code) since Wed 2017-07-26 14:30:21 EDT; 8min ago Docs: http://docs.docker.com Process: 5835 ExecStart=/usr/bin/dockerd-current --add-runtime docker-runc=/usr/libexec/docker/docker-runc-current --default-runtime=docker-runc --authorization-plugin=rhel-push-plugin --exec-opt native.cgroupdriver=systemd --userland-proxy-path=/usr/libexec/docker/docker-proxy-current $OPTIONS $DOCKER_STORAGE_OPTIONS $DOCKER_NETWORK_OPTIONS $ADD_REGISTRY $BLOCK_REGISTRY $INSECURE_REGISTRY (code=exited, status=1/FAILURE) Main PID: 5835 (code=exited, status=1/FAILURE) Jul 26 14:30:21: Starting Docker Application Container Engine... Jul 26 14:30:21 dockerd-current[5835]: time="2017-07-26T14:30:21-04:00" level=fatal msg="unable to configure the Docker daemon with file /etc/docker/daemon.json: EOF\n" Jul 26 14:30:21 systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE Jul 26 14:30:21 systemd[1]: Failed to start Docker Application Container Engine. Jul 26 14:30:21 systemd[1]: Unit docker.service entered failed state. Jul 26 14:30:21 systemd[1]: docker.service failed. 

请让我知道如果我需要检查别的东西。

文件/etc/docker/daemon.json不应该存在,或者如果它存在,那么它应该有一个有效的JSON对象。 一个空白文件会产生一个错误。 要么删除文件,要么如果你想有一个空白的文件,然后与下面的内容

 { } 

这将创build一个空白的json对象