Stop / remove docker containers / all images

Stop all docker containers.

docker stop $(docker ps -aq)

Remove all docker containers.

docker rm $(docker ps -aq)

Remove all images.

docker rmi $(docker images -q)

Docker service not running

[email protected] [ ~ ]# systemctl status docker
‚óŹ docker.service - Docker Application Container Engine
   Loaded: loaded (/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
   Active: inactive (dead)
   Docs: https://docs.docker.com

Run the following.

systemctl enable docker 
systemctl start docker