Docker Error: Cannot connect to the Docker daemon. Is the Docker daemon running on this host?

Asked

Viewed 604 times

1

I’m new to Docker and I’m facing a problem when it comes to seeing existing containers or any other information.

When running for example : Docker ps. Displays the following error message: Cannot connect to the Docker daemon. Is the Docker daemon running on this host?

The OS I’m using is Linux Ubuntu

Grateful from now on.

1 answer

3

Check if the Docker Daemon is running with the command service docker status, if you are not start with service docker start and check if the error persists.

If the Docker user does not belong to the same group of the login used by you, add it to the group, sudo usermod -aG docker <seusuario>

If you persist and can reinstall, do so with the instructions of the official documentation, with it you will have the latest version, but first remove the current version.

https://docs.docker.com/engine/installation/ubuntulinux/

  • I made the process informed, but the problem continues. Running the command 'service Docker start' presents the following message: "start: Rejected send message, 1 Matched Rules; type="method_call", Sender=":1.183" (uid=1000 pid=7036 com="start Docker ") interface="com.ubuntu.Upstart0_6.Job" Member="Start" error name="(unset)"requested_reply="0" Destination="com.ubuntu.Upstart" (uid=0 pid=1 Comm="/sbin/init") ". I’ll reinstall and try again.

  • Follow these steps and be happy !!! https://docs.docker.com/engine/installation/linux/ubuntulinux/#/create-a-Docker-group

Browser other questions tagged

You are not signed in. Login or sign up in order to post.