Troubleshooting of docker errors: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
(One intermediate revision by the same user not shown) | |||
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: 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: | |||
<pre> | |||
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? | |||
</pre> | |||
Solution: | |||
* On CentOS: {{kbd | key = sudo systemctl start docker}}<ref>[https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-centos-7 How To Install and Use Docker on CentOS 7 | DigitalOcean]</ref> | |||
== 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) == |
Latest revision as of 10:43, 28 March 2022
Troubleshooting of docker errors
How to troubleshooting of docker errors[edit]
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: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?[edit]
Error condition: After I inputted the command docker ps, I met the error message as follows:
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
Solution:
- On CentOS: sudo systemctl start docker[1]
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[2]
docker tag <IMAGE ID> <ACCOUNT NAME>/<NAME>:<TAG>
References[edit]
Troubleshooting of ...
- PHP, cUrl, Python, selenium, HTTP status code errors
- Database: SQL syntax debug, MySQL errors, MySQLTuner errors or PostgreSQL errors
- HTML/Javascript: Troubleshooting of javascript, XPath
- Software: Mediawiki, Docker, FTP problems, online conference software
- Test connectivity for the web service, Web Ping, Network problem, Web user behavior, Web scrape troubleshooting
Template