}

Docker: how to delete all containers or images

Created:

How to remove all containers

docker rm $(docker ps -aq) if(typeof __ez_fad_position != 'undefined'){__ez_fad_position('div-gpt-ad-tutorials_technology-medrectangle-3-0')}; How to remove all images ========================

docker rmi $(docker images -q)