From 7062117d4672b1a3e1e570bc59f4dffbffb99e9a Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Thu, 6 Feb 2020 11:27:12 +0100 Subject: [PATCH] Fix HA container --- .devcontainer/start_hassio.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.devcontainer/start_hassio.sh b/.devcontainer/start_hassio.sh index 76b609a..eeb2800 100644 --- a/.devcontainer/start_hassio.sh +++ b/.devcontainer/start_hassio.sh @@ -68,6 +68,11 @@ function cleanup_hass_data() { function cleanup_docker() { echo "Cleaning up stopped containers..." docker rm $(docker ps -a -q) + + # Clean homeassistant instance + if docker rm -f homeassistant 2> /dev/null; then + echo "Cleanup HomeAssistant instance" + fi } function run_supervisor() { @@ -100,4 +105,4 @@ case "$1" in install run_supervisor stop_docker;; -esac \ No newline at end of file +esac