Kriuchko
7/30/2019 - 1:13 PM

Commands


docker ps /* show containers */
docker images /* show images */
exit /* from bash or shell or terminal */

\!h Remove containers
docker container rm [CONTAINER ID] [CONTAINER ID]
docker container prune /* remove all stoped containers */

\!h Remove image
docker rmi [IMAGE ID] [IMAGE ID]
docker image prune -a /* remove all images which are not referenced by any existing container */