centos7 docker容器啓動報錯

centos7 運行
systemctl start docker.service

出現如下錯誤

Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journal              ctl -xe" for details
運行 journalctl -xe 查看日誌信息
unable to configure the Docker daemon with file /etc/docker/daemon.js
12月 25 16:23:39 localhost.localdomain systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
12月 25 16:23:39 localhost.localdomain systemd[1]: Failed to start Docker Application Container Engine.
-- Subject: Unit docker.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit docker.service has failed.
--
-- The result is failed.
12月 25 16:23:39 localhost.localdomain systemd[1]: Unit docker.service entered failed state.
12月 25 16:23:39 localhost.localdomain systemd[1]: docker.service failed.
12月 25 16:23:39 localhost.localdomain polkitd[8554]: Unregistered Authentication Agent for unix-process:84471:192413129 (system bus
 ESCOC
 Storage Setup...
devel
Storage Setup.
p
devel
 Application Container Engine...
devel
ble to configure the Docker daemon with file /etc/docker/daemon.json: invalid character '}' looking for beginning of object key stri
 main process exited, code=exited, status=1/FAILURE
 Docker Application Container Engine

查看docker的版本

docker --version

在這裏插入圖片描述

運行
docker info

在這裏插入圖片描述
查看daemon.json文件

cd /etc/docker/
vi daemon.json
將doaemon.json文件中的","號刪除,然後保存
啓動docker 服務
systemctl start docker.service

在這裏插入圖片描述
在這裏插入圖片描述
在這裏插入圖片描述
在這裏插入圖片描述

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章