I need to uninstall an older version of HCI and I'd rather not rebuild the linux host. What is the best way to uninstall HCI so I can install a new fresh version?
To properly clean up HCI on the host it's typically a three step process:
To elaborate a bit more on each step:
Note: This command will kill and remove all containers and images on the host, not only those related to HCI.
Hopefully this answers your question.
I suspect the answer is "sudo docker rm –f $(sudo docker ps -aq)" as per Eckhard Roeser's useful commands document.
edit: That doesn't seem to work because docker ps still shows the containers running, even after reboot.
edit edit: I guess it pays to be persistent. I had to run the command several times, then remove the docker images (docker rmi <image id>
reference: How to Remove Docker Images and Containers
edit x3: Before running the above, first stop hci (systemctl stop hci_search.service; systemctl disable hci_search.service). Next, run hci_stop.
Thanks Frank. I think I got it figured out; just not in the correct order
Retrieving data ...