2017-07-26 10 views
0

私はドッカーには新しく、これらのエラーを理解することはできません。だから、もっと情報が必要なのかどうか私に知らせてください。ファイル/etc/docker/daemon.jsonでDockerデーモンを設定できません:EOF

`$ 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. 

他に何かを確認する必要がある場合は教えてください。

+0

あなたはdaemon.jsonを作成しました空白のJSONオブジェクトを作成すると、それを持っているし、そうならば、それは空白になって? –

+0

はい、それは空白です。私はvimを使って作ったと思います。 – Aki

答えて

1

ファイル/etc/docker/daemon.jsonは存在しないか、存在する場合は有効なJSONオブジェクトが必要です。空のファイルはエラーを生成します。いずれかのファイルを削除するか、空白のファイルを持っているしたい場合は、コンテンツ

以下
{ 
} 

これは

関連する問題