From 1c93a06d3168996942dc97a913194f3887525176 Mon Sep 17 00:00:00 2001 From: Luciano Colosio Date: Thu, 23 May 2019 08:49:24 +0100 Subject: [PATCH] Warn the user about NOT deleting containers (#12) * Warn the user about NOT deleting containers As the `supervisor` does not support creating the homeassistant container if accidentally deleted, let's warn the users before it's too late and perhaps give a bare minimum of possible ways to recover. * Update README.md --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index 82efa3e..21ba1d7 100644 --- a/README.md +++ b/README.md @@ -57,3 +57,20 @@ curl -sL https://raw.githubusercontent.com/home-assistant/hassio-installer/maste - raspberrypi3 - raspberrypi3-64 - tinker + +## !!!WARNING!!! DO NOT DELETE CREATED CONTAINERS + +This installer will create the base `homeassistant` container for you, but if you delete if (`docker rm` or `docker prune`) the supervisor will not be able to re-create it for you. Hass.io is a Eco System and Container Orchastrator they don't support manual adjustments. + +If you wish to still safelly use `docker containers prune` you might want to add the `--filter` flag to your command. + +Example: +```sh +$ docker container prune --filter label!=homeassistant +``` +or, for a greater peace of mind, you can add the following config to your `~/.docker/config.json`: +```javascript +{ + "pruneFilters": ["label!=homeassistant", "label!=hassio_supervisor", "label!=addon*"] +} +```