Languages
[Edit]
EN

Docker - remove images by tag name

3 points
Created by:
troya
332

Quick solution: 

# will print all images
docker images | grep "MY_TAG_HERE" | awk '{print $1 ":" $2}'

# will remove all images - test above command 
docker images | grep "MY_TAG_HERE" | awk '{print $1 ":" $2}' | xargs docker rmi

 

Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join