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