Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 15 lines (14 sloc) 633 Bytes
#!/usr/bin/env bash
## @copyright 2018 DennyZhang.com
## Licensed under MIT
## https://www.dennyzhang.com/wp-content/mit_license.txt
##
## File: delete_all_containers.sh
## Author : Denny <https://www.dennyzhang.com/contact>
## Description : https://cheatsheet.dennyzhang.com/cheatsheet-docker-A4
## --
## Created : <2018-07-10>
## Updated: Time-stamp: <2018-11-23 21:41:03>
##-------------------------------------------------------------------
# curl -L https://raw.githubusercontent.com/dennyzhang/cheatsheet-docker-A4/master/delete-unused-images.sh | bash
docker rmi $(docker images | grep "<none>" | awk -F' ' '{print $3}')