From ac7efadaaea462ec01b56be6ee8ad9667b24330a Mon Sep 17 00:00:00 2001 From: Jephte Clain Date: Thu, 7 Nov 2019 12:09:39 +0400 Subject: [PATCH] =?UTF-8?q?dk:=20possibilit=C3=A9=20de=20forcer=20la=20sup?= =?UTF-8?q?pression=20des=20images?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dk b/dk index 13483ab..9d0606e 100755 --- a/dk +++ b/dk @@ -195,6 +195,8 @@ OPTIONS générales commandes. Utiliser -u pour desélectionner la machine en cours, e.g -m-u -n, --fake Ne pas lancer les commandes, simplement les afficher + -f, --force + Forcer l'opération (là où cela a du sens) -h, --host HOST Spécifier l'hôte pour la commande systemd-unit @@ -1401,6 +1403,7 @@ CONFIG= DM_SET_MACHINE= USE_STACK= FAKE= +FORCE= NO_CACHE= HOST= WITH_REGISTRY_AUTH=1 @@ -1418,6 +1421,7 @@ args=( -m:,--set-machine: DM_SET_MACHINE= --stack USE_STACK=1 -n,--fake FAKE=1 + -f,--force FORCE=1 -j,--no-cache NO_CACHE=1 -h:,--host: HOST= -g,--ug,--no-update-apps update_apps_mode=b @@ -1797,7 +1801,7 @@ NR == 1 { print; next } if [ ${#images[*]} -gt 0 ]; then echo "$all" ask_yesno "Etes-vous sûr de vouloir supprimer ces images?" || die - docker image rm "${images[@]}" || die + docker image rm ${FORCE:+--force} "${images[@]}" || die fi ;; X|prune)