docker removeimage script


docker removeimage script

#/bin/bash declare -A REPLACE_MAP REPLACE_MAP['hours']='1' REPLACE_MAP['days']='2' REPLACE_MAP['weeks']='3' REPLACE_MAP['months']='4' REPLACE_MAP['years']='5' if [ $# -eq 0 ]; then echo "인자를 입력해 주세요" echo "ex) hours or days... docker image create value" exit fi term="${REPLACE_MAP["$1"]}" if [ -z $term ]; then echo "hours or days or weeks or months or years중에서 입력해주세요" exit fi imageId='' n=0 while read -r line; do read -ra lineSplit <<< $line imageId=${lineSplit[2]} n=${lineSplit[3]} termKey=${lineSplit[4]} compareTermValue="${REPLACE_MAP["$termKey"]}" if [ $compareTe..........



원문링크 : docker removeimage script