How to Fix ERROR: Couldn’t connect to Docker daemon at http+docker://localhost – is it running?

centos8 using docker composer ERROR: fix ERROR: Couldn’t connect to docker daemon at HTTP +docker://localhost – is it running?

you can see the version number using docker-compose version, proving that the service is enabled. The reason is because it is not added to the Docker group.

execute command: sudo gpasswd-a ${USER} docker note: do not change the command, directly execute

after the execution of the user needs to switch: su root; su hyn

Read More: