This article is mainly deal with errors that I have faced while learning about docker container and how I resolved it.
- Docker dead but pid file exists
After installing docker service I have started it for the first time. But when I checked the status of the daemon I got the following error.
This can be fixed by installing or updating lib-device-manager. To install this package first enable public_ol6_latest repo.
yum-config-manager --enable public_ol6_latest
and install the lib-device-manager package by issuing the following command.
#yum install device-mapper-event-libs
Once the package installation complete. Restart docker service.
- Lookup index.docker.io: no such host
When trying to download an image from the public docker repository I got the above error.
To fix this issue I have restarted the docker service by issuing the following command
#service docker restart
or you can temporarily fix this issue by adding the hostname and its corresponding IP address to the /etc/hosts file. To get the IP address of the host use dig in Linux or nslookup in windows.
- invalid reference format: repository name must be lowercase
I got this error when I am trying to build a container using Dockerfile.
Here I have used repository name in the capital letter ( “c” in cpas ). Please make sure that in the Dockerfile you are using repository name in small letter only