이런저런 작업을 하다가 docekr daemon 재 시작시 아래와 같은 메세지가 나올수 있다
[root@kiwitest01 docker.service.d]# systemctl start docker
Failed to start docker.service: Unit is not loaded properly: Invalid argument.
See system logs and 'systemctl status docker.service' for details.
root@kiwitest01 docker.service.d]# systemctl status docker.service
â— docker.service - Docker Application Container Engine
Loaded: error (Reason: Invalid argument)
Drop-In: /etc/systemd/system/docker.service.d
└─override.conf
Active: inactive (dead)
Docs: https://docs.docker.com
Mar 23 16:17:32 kiwitest01 systemd[1]: docker.service has more than one ExecStart= setting, which is only allowed for Type=oneshot services. Refusing.
요럴땐
vi /etc/systemd/system/docker.service.d/override.conf
-------- 변경전 ----------------
[Service]
Restart=always
StartLimitInterval=0
RestartSec=15
ExecStartPre=-/sbin/ip link del docker0
ExecStart=/usr/bin/dockerd --storage-driver=overlay
위에 처럼 된것에
[Service]
Restart=always
StartLimitInterval=0
RestartSec=15
ExecStartPre=-/sbin/ip link del docker0
ExecStart=
ExecStart=/usr/bin/dockerd --storage-driver=overlay
요렇게 ExecStart를 하나더 추가해주면 된다.
요렇게 하고 systemctl start docker
안되면 systemctl daemon-reload
그리고 나서 systemctl start docker
이상~~끝
헐~~ 기존 정보 다 날라갈수 있음... 초기 도커 설치시에 만들어 놓음 좋음