Categories: Linux

Unable to configure the Docker daemon with file /etc/docker/daemon.json

Pesan eror yang ada pada judul terjadi ketika kita mencoba untuk melakukan konfigurasi docker menggunakan file yang berada di /etc/docker/daemon.json.

Ketika kita melakukan debugging menggunakan journalctl -xe -u docker , maka pesan berikut akan tampil

Aug 01 06:55:35 myhost systemd[1]: Starting Docker Application Container Engine...
-- Subject: Unit docker.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit docker.service has begun starting up.
Aug 01 06:55:35 myhost dockerd-current[10880]: 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: storage-driver: (from flag: overlay, from file: overlay)
Aug 01 06:55:35 myhost systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
Aug 01 06:55:35 myhost 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.
Aug 01 06:55:35 myhost systemd[1]: Unit docker.service entered failed state.
Aug 01 06:55:35 myhost systemd[1]: docker.service failed.

Akar permasalahan munculnya eror ini adalah karena konfigurasi /etc/docker/daemon.json  konflik dengan konfigurasi storage default dari docker yang berada di /etc/sysconfig/docker-storage  dan  /etc/sysconfig/docker-storage-setup . Untuk mengatasi masalah ini, hapus saja 2 file yang konflik tersebut

rm -f /etc/sysconfig/docker-storage /etc/sysconfig/docker-storage-setup

 

Akhmad Fakhoni Listiyan Dede

Share
Published by
Akhmad Fakhoni Listiyan Dede

Recent Posts

Install kubernetes cluster using kubeadm

Hello everyone! 👋 Welcome to our step-by-step guide on using kubeadm to install Kubernetes. It's…

10 months ago

Meningkatkan Efisiensi Memory Proxmox Lebih dari 20%

Proxmox adalah hypervisor yang populer digunakan karena penggunaannya yang cukup simpel jika dibandingkan dengan hypervisor…

4 years ago

Longhorn Failed Upgrade from v0.8.1 to v1.0.0 caused by pv created before v0.6.2

This post is mirror of https://forums.rancher.com/t/failed-upgrade-from-v0-8-1-to-v1-0-0-caused-by-pv-created-before-v0-6-2/17586 I scale down all pods that has vpc to…

4 years ago

Cara Setup Network Ubuntu Server 18.04 pada Proxmox

Ubuntu Konfigurasi network pada Ubuntu Server 18.04 berbeda dengan ubuntu versi sebelumnya. Versi sebelumnya menggunakan…

4 years ago

VSCode Terminal Font Fix on MacOS

For detailed problems, see https://notulensiku.com/2019/02/fix-integrated-terminal-font-vscode/ To solve on mac, you need to install powerline fonts…

5 years ago

Enable Forward Secrecy pada Apache

Untuk mengaktifkan Forward Secrecy pada web browser Apache, versi minimum yang dibutuhkan adalah: OpenSSL 1.0.1c+Apache…

5 years ago