Created
          August 15, 2022 12:39 
        
      - 
      
- 
        Save andreisfedotov/c072bf74bc6633567fed10ff405b88e4 to your computer and use it in GitHub Desktop. 
    Stop and Remove all Docker containers
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 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