
Linux OS: debian11 모든 것이 작동했지만 오늘 sudo apt 업그레이드 후 새 버전의 docker를 설치한 것 같습니다. 그러면 docker 데몬이 시작되지 않습니다.
$ 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 journalctl -xu docker.service
May 27 09:07:11 debian systemd[1]: Started Docker Application Container Engine.
░░ Subject: A start job for unit docker.service has finished successfully
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ A start job for unit docker.service has finished successfully.
░░
그런 다음 apt update && apt 업그레이드를 실행했는데 docker가 더 이상 실행되지 않습니다. 그래프 지시문이 구성과 일치하지 않는 문제가 있습니다..:(
$ sudo journalctl -xu docker.service
May 27 09:20:43 debian dockerd[12661]: unable to configure the Docker daemon with file /etc/docker/daemon.json: the following directives don't match any configuration option: graph
May 27 09:20:43 debian systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE
이것이 내 daemon.json의 모습입니다.
$ cat /etc/docker/daemon.json
{
"graph": "/data/docker/docker-data/"
}
도커 버전
$ docker --version
Docker version 24.0.2, build cb74dfc
도커를 제거하고 다시 설치하려고 시도했지만 운이 없었습니다.
답변을 수락하고 여기에 해결책을 넣습니다.
$ cat /etc/docker/daemon.json
{
"data-root" : "/data/docker/docker-data/"
}
답변1
graph
~이다더 이상 지원되지 않습니다.
dockerd 또는 docker daemon 명령의 -g 또는 --graph 플래그는 영구 데이터 및 리소스 구성을 저장할 디렉터리를 나타내는 데 사용되었으며 더 설명적인 --data-root 플래그로 대체되었습니다. 이러한 플래그는 v17.05에서 더 이상 사용되지 않고 숨겨졌으며 v23.0에서는 제거되었습니다.
v24를 실행 중입니다.