gcgarner / IOTstack

docker stack for getting started on IOT on the Raspberry PI
GNU General Public License v3.0
1.5k stars 578 forks source link

unable to stop and remove Hassio containers in IOTstack #231

Closed mohankrishna-g closed 3 years ago

mohankrishna-g commented 3 years ago

unable to stop and remove Hassio containers in IOTstack

i install hassio through menu.sh in baremettle ubuntu desktop. as it is outside io stack. im unable to stop hassio containers. tried remove docker and stopping containers and update the policy to restart unless stopped.but nothing worked. need to get the location details of hassio container and i want to remove hassio containers as im not using HA.

didn't worked, Stop all running containers docker stop $(docker ps -aq) Remove all containers docker rm $(docker ps -aq) Remove all images docker rmi $(docker images -q)

tried updating this flag tooo docker update --restart unless-stopped $(docker ps -q)

mohankrishna-g commented 3 years ago

found good documentation on below https://sensorsiot.github.io/IOTstack/Containers/Home-Assistant/

Removal To remove Hass.io you first need to stop the service that controls it. Run the following in the terminal:

sudo systemctl stop hassio-supervisor.service sudo systemctl disable hassio-supervisor.service This should stop the main service however there are two additional container that still need to be address

This will stop the service and disable it from starting on the next boot

Next you need to stop the hassio_dns and hassio_supervisor

docker stop hassio_supervisor docker stop hassio_dns docker stop homeassistant If you want to remove the containers

docker rm hassio_supervisor docker rm hassio_dns docker stop homeassistant After rebooting you should be able to reinstall

The stored file are located in /usr/share/hassio which can be removed if you need to

Double check with docker ps to see if there are other hassio containers running. They can stopped and removed in the same fashion for the dns and supervisor

You can use Portainer to view what is running and clean up the unused images.