clean up any resources — images, containers, volumes, and networks — that are dangling (not associated with a container):
$ docker system prune
List
$ docker images -a
Remove
$ docker image rm Image Image
$ docker rmi $(docker images -a -q)
List
$ docker ps -a
Remove
$ docker rm ID_or_Name ID_or_Name
List
$ docker ps -a -f status=exited
Remove
$ docker rm $(docker ps -a -f status=exited -q)
$ docker exec -it <container name> /bin/bash
$ docker inspect <containerNameOrId> | grep '"IPAddress"'
List
$ docker volume ls
Remove
$ docker volume rm volume_name volume_name