현상

해결

모든 docker 명령어가 응답하지 않고 hang 이 걸릴 경우 처리 방법

docker.sock 파일 제거

Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

[Docker] Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? 에러 해결

# 도커 데몬 켜져있는지 확인
sudo systemctl status docker.service
sudo systemctl status containerd.service

# 도커 끄기
sudo systemctl stop docker.service
sudo systemctl stop containerd.service

# 도커 켜기 / 다시 켜기
sudo systemctl start docker.service
sudo systemctl restart docker.service

# 도커 시작시 자동으로 켜지게 설정
sudo systemctl enable docker.service

도커를 완전히 지우고 다시 설치하기 - Rain.i

도커를 완벽히 삭제하고 다시 설치

리눅스에 apt-get으로 패키지 설치 및 확인