【问题描述】
docker安装后执行docker images 报错如下
error during connect: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.40/images/json: read unix @->/run/docker.sock: read: connection reset by peer
【问题处理】
- 执行journalctl -xe和查看报错
WARN[2023-02-06T11:22:45.440728977+08:00] grpc: addrConn.createTransport failed to connect to {unix:///run/containerd/containerd.sock 0 <nil>}. Err :con: desc = "transport: Error while dialing dial unix /run/containerd/containerd.sock: connect: connection refused". Reconnecting... module=grpc
- 从报错看着疑似是/run/containerd/containerd.sock文件有问题
- 删除/run/containerd/containerd.sock文件后重启恢复