This might happen because of multiple reasons.
You should grant permission to use docker for specific user if he is not root user.
In order to grant permission execute below command:
$ sudo usermod -aG docker <username>
replace <username> with actual user name. Also make sure you log off/restart machine before using docker, after executing above command.
2. Docker service might not be running
In order to re-start the docker service execute below commands
$ sudo service docker stop
$ sudo service docker start
Now you should be able to use docker.
No comments:
Post a Comment