Last active
June 9, 2018 01:49
-
-
Save pzelnip/40da3bf80876c2cdb5809d8a3bd9ee97 to your computer and use it in GitHub Desktop.
Docker interactive image deletion
This file contains 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
#!/bin/bash | |
select x in `docker images --format '{{.ID}}--{{.Repository}}/{{.Tag}}'` ; do docker rmi "${x%--*}"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Allows you to interactively in a shell delete local Docker images.
Running it: