Troubleshooting of docker errors

From LemonWiki共筆
Jump to navigation Jump to search

Error response from daemon: dial unix docker.raw.sock: connect: connection refused (on Mac)[edit]

Error condition: After I inputted the command docker ps, I met the error message as follows:

Error response from daemon: dial unix docker.raw.sock: connect: connection refused

Solution: Make sure the docker is running. After docker was lunched, the result of command docker ps should be:

CONTAINER ID   IMAGE     COMMAND   CREATED   STATUS    PORTS     NAMES

Error response from docker desktop: credential when tried to docker push[edit]

Solution: Login the account of docker hub

Error response from docker desktop: denied: requested access to the resource is denied when tried to docker push[edit]

Solution: Add tag to the docker image you want to publish[1]

docker tag <IMAGE ID> <ACCOUNT NAME>/<NAME>:<TAG>

References[edit]