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

栏目: Docker 发布时间:2021-12-24

docker 报下属错误:

Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
ERRO[0000] Can't add file /Users/teng/code/ocr-docker/.git/logs to tar: io: read/write on closed pipe
ERRO[0000] Can't close tar writer: io: read/write on closed pipe

遇到这种报错,仔细看错误信息,其实描述很清楚,docker守护进程可能没有运行,启动 docker 即可

# 启动 docker
systemctl start docker

# 重启 docker
systemctl restart docker

本文地址:https://www.tides.cn/p_docker-cannot-connect-to-the-docker-daemon

标签: docker daemon