Did you get this error after installing Docker on any of Redhat Linux OS or Amazon Machine image?
docker: Cannot connect to the Docker daemon at
unix:///var/run/docker.sock. Is
the docker daemon running?.
See 'docker run --help'.
Fix for the above issues:
Just do the below to fix the error..
Firstly make sure docker daemon is running by executing the below command..
> service docker status
After executing if see you some thing like this, docker is not yet started.
docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
Active: inactive (dead)
Docs: https://docs.docker.com
you can start by executing the below command:
>service docker start
docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
Active: active (running) since Sun 2017-01-29 13:40:17 EST; 1s ago Docs: https://docs.docker.com
Main PID: 30319 (dockerd)
> service docker status
Now you should see docker daemon is running.
now execute the below command to run hello world docker image.
> sudo docker run hello-world
Hello from Docker!
This message shows that your installation appears to be working correctly.
Hands on DevOps Coaching provided on AWS and Azure Cloud platforms. please contact devops.coaching@gmail.com for more info.
Subscribe to:
Post Comments (Atom)
-
We get these questions a lot from the teams we are coaching at my customer's work place How to create microservices? How to break...
-
Let's learn how to connect to an EC2 instance running in AWS from your local machine. Your local machine can be Windows laptop or MacBoo...
-
Amazon Elastic Container Registry (ECR) is a fully managed container registry service provided by Amazon Web Services (AWS). It allows user...
No comments:
Post a Comment