Facing issue with docker daemon

@MODEMKISHOREDEVOPS , Is this with any lab? If not you may follow the below steps:

  1. In case, if the docker daemon is not running properly then try starting the docker daemon. For that, you can run the below command.

$ service docker start

  1. Ensure that you are prefixing the docker commands with sudo. However, if you are willing to avoid entering sudo while running any docker commands then add your username into the docker group:

$ sudo usermod -aG docker $(whoami)

Then activate the group by logging out of the server and logging in back as the same user. For that, run the below command.

$ newgrp docker

If you want to add a user into the docker group that you are not logged in as, then state that username explicitly by running the below command:

$ sudo usermod -aG docker username