Troubleshooting of docker errors: Difference between revisions

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 ==
== General Troubleshooting Steps of Docker Errors ==


=== Viewing Docker Logs ===
Enter the following command
Enter the following command
<pre>
<pre>
Line 16: Line 17:
</pre>
</pre>


 
=== Useful Tools ===
* [https://hadolint.github.io/hadolint/ Dockerfile Linter]
* [https://hadolint.github.io/hadolint/ Dockerfile Linter]


== Error: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?  ==
== Common Error Solutions ==
=== Error: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?  ===
Error condition: After I inputted the command {{kbd | key = docker ps}}, I met the error message as follows:
Error condition: After I inputted the command {{kbd | key = docker ps}}, I met the error message as follows:


Line 31: Line 33:




== 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) ===
Error condition: After I inputted the command {{kbd | key = docker ps}}, I met the error message as follows:
Error condition: After I inputted the command {{kbd | key = docker ps}}, I met the error message as follows:


Line 43: Line 45:
</pre>
</pre>


== Error response from docker desktop: credential when tried to docker push ==
=== Error response from docker desktop: credential when tried to docker push ===


Solution: Login the account of docker hub
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 ==
=== 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<ref>[https://stackoverflow.com/questions/43858398/docker-push-error-denied-requested-access-to-the-resource-is-denied docker push error "denied: requested access to the resource is denied" - Stack Overflow]</ref>  
Solution: Add tag to the docker image you want to publish<ref>[https://stackoverflow.com/questions/43858398/docker-push-error-denied-requested-access-to-the-resource-is-denied docker push error "denied: requested access to the resource is denied" - Stack Overflow]</ref>  
Line 60: Line 62:
{{Template:Troubleshooting}}
{{Template:Troubleshooting}}


[[Category:Programming]]
[[Category: Programming]]

Navigation menu