Skip to content

Instantly share code, notes, and snippets.

@andreisfedotov
Created August 15, 2022 12:39
Show Gist options
  • Save andreisfedotov/c072bf74bc6633567fed10ff405b88e4 to your computer and use it in GitHub Desktop.
Save andreisfedotov/c072bf74bc6633567fed10ff405b88e4 to your computer and use it in GitHub Desktop.
Stop and Remove all Docker containers
Write-Output "CONTAINERS LIST:"
docker container ls
Write-Output "`n`nSTOPPING:"
docker stop $(docker ps -a -q)
Write-Output "`n`nREMOVING:"
docker rm $(docker ps -a -q)
Write-Output "`n`nCONTAINERS LIST:"
docker container ls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment