Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 496 Bytes

README.md

File metadata and controls

25 lines (17 loc) · 496 Bytes

Install docker tools

choco install -y docker docker-compose docker-machine

Useful commands

  • Remove all containers:

    docker ps --format "{{.ID}}" -a | % {docker rm $_}
    
  • Remove all container based on a specific image

    docker ps -f ancestor=windowsservercore -a --format "{{.ID}}" | % {docker rm $_}
    
  • Remove all untagged (dangling) images

    docker images -f dangling=true --format "{{.ID}}" | % {docker rmi $_}