From aee9c78585c80acdbcb63c85c7ff0ca15fc8b306 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Fri, 24 Mar 2017 00:35:31 +0100 Subject: [PATCH] cleanup resinhup --- meta-hassio/recipes-support/resinhup/resinhup/run-resinhup.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta-hassio/recipes-support/resinhup/resinhup/run-resinhup.sh b/meta-hassio/recipes-support/resinhup/resinhup/run-resinhup.sh index 911469334..bcc6f456e 100644 --- a/meta-hassio/recipes-support/resinhup/resinhup/run-resinhup.sh +++ b/meta-hassio/recipes-support/resinhup/resinhup/run-resinhup.sh @@ -307,6 +307,8 @@ docker run --privileged --rm --net=host $RESINHUP_ENV \ -v /var/run/docker.sock:/var/run/docker.sock \ $DOCKER_REPO/resinhup:$MACHINE-$RESINHUP_VERSION RESINHUP_EXIT=$? + +docker rmi $DOCKER_REPO/resinhup:$MACHINE-$RESINHUP_VERSION || true # RESINHUP_EXIT # 0 - update done # 2 - only intermediate step was done and will continue after reboot