Troubleshooting of docker errors: Difference between revisions

From LemonWiki共筆
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
Troubleshooting of docker errors
Troubleshooting of docker errors
== How to troubleshooting of docker errors ==
Enter the following command
<pre>
tail /home/dockerd.log
</pre>
Or the see the log of specific container ID
<pre>
docker logs <Container ID>
# OR enter the following command which the log was updated automatically
docker logs -f --details <Container ID>
</pre>
* [https://hadolint.github.io/hadolint/ Dockerfile Linter]


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

Revision as of 17:51, 19 December 2021

Troubleshooting of docker errors

How to troubleshooting of docker errors

Enter the following command

tail /home/dockerd.log

Or the see the log of specific container ID

docker logs <Container ID>

# OR enter the following command which the log was updated automatically
docker logs -f --details <Container ID>


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

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

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

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

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

References


Troubleshooting of ...

Template