简体   繁体   中英

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

I am new to the world Docker'm having trouble running the first time. The facility was quiet, however there trying to check existing container, it shows the following message:

Can not connect to the Docker daemon. Is the running daemon docker on this host?

I've done the start of the daemon to the test reported in the docker documentation I tested is normal and prowling, however to continue the steps displays the message reported above.

By default, the docker command runs for its own group or root users. Make sure you type prefix the command you're using with sudo . Alternatively, you can add your current user to the docker group by running sudo usermod -aG docker $USER .

Source: the official documentation .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM