centos ERROR: Couldn't connect to Docker daemon at http+docker://localhost - is it running?

created at 11-16-2021 views: 1

error

ERROR: Couldn't connect to Docker daemon at http+docker://localhost-is it running?

The main reason is that docker is not started as a system service.

solution:

1. Start the docker service

service docker start

2. Generate self-starting service

systemctl enable docker.service

3. Check the service status, the Active status is: active (running)

systemctl status docker.service
created at:11-16-2021
edited at: 11-16-2021: