other

Useful docker commands

Source link for more information : https://typeofnan.dev/how-to-stop-all-docker-containers/

# Stop all docker containers
    docker kill $(docker ps -q)
# Remove all docker containers
    docker rm $(docker ps -a -q)
# Remove all docker images
    docker rmi $(docker images -q)
Was this helpful?