0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

daemon.json編集後にdockerサービスが起動出来なくなった時の対処

Posted at

構築してからしばらく経っている俗に言う負債サービス環境調査時のメモです。

/etc/docker/daemon.jsonの中身をいじっていたらdocker起動しなくなって、全記述削除してみてもサービス起動せずハマった。

daemon.json自体が存在すると中身が空でもダメらしい

journalのログを確認してみると

# journalctl -xe
Sep 15 20:06:51 xxxxxxxxxx.ap-northeast-1.compute.internal dockerd[1248]: unable to configure the Docker daemon with file /etc/docker/daemon.json

daemon.jsonファイルでdaemonの構成が出来ない的な表示を確認

# rm -f /etc/docker/daemon.json
# systemctl reset-failed docker.service
# systemctl start docker.service

一度削除して起動で解決しました

※ 確認したdockerバージョン

# docker --version
Docker version 19.03.2, build 6a30dfc
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?