You need to stop the Docker daemon first and then start it:
To stop the Docker daemon:
sudo /etc/init.d/docker stop
To start the Docker daemon:
sudo /etc/init.d/docker start
This will reset Docker, after which all the commands should work properly.
If the above commands do not work, then just reboot:
sudo reboot
6 down vote
You need to stop the Docker daemon first and then start it:
To stop the Docker daemon:
sudo /etc/init.d/docker stop
To start the Docker daemon:
sudo /etc/init.d/docker start
This will reset Docker, after which all the commands should work properly.
If the above commands do not work, then just reboot:
sudo reboot