Skip to content

Instantly share code, notes, and snippets.

@yamyamyuo
Created October 15, 2018 12:01
Show Gist options
  • Save yamyamyuo/1b647912142ec305c478151aea4cfeeb to your computer and use it in GitHub Desktop.
Save yamyamyuo/1b647912142ec305c478151aea4cfeeb to your computer and use it in GitHub Desktop.
docker remove image with angry
#!/bin/bash
docker rm $(docker ps -a -q)
docker rmi $(docker images -q)
docker rmi $(docker images --filter "dangling=true" -q --no-trunc)
docker images | grep "superset" | awk '{print $3}' | xargs docker rmi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment