# List all containers (only IDs)
docker ps -aq # Stop all running containersdocker stop $(docker ps -aq)# Remove all containersdocker rm $(docker ps -aq)# Remove all imagesdocker rmi $(docker images -q)
# List all containers (only IDs)
docker ps -aq # Stop all running containersdocker stop $(docker ps -aq)# Remove all containersdocker rm $(docker ps -aq)# Remove all imagesdocker rmi $(docker images -q)