I need to completely uninstall Rancher. Below is my script that I use to do so. Tell me if it is missing anything.
Script rancher-reset.sh:
#!/bin/bash
# Reset Rancher
service docker stop
umount -rlf /var/lib/docker/*
umount -rlf /var/lib/rancher/*
rm -rf /var/lib/docker/*
rm -rf /var/lib/rancher/*
apt install --reinstall docker-ce
After removing Rancher and Docker, rancher/server
installs successfully, and then adding the Host
installs successfully.
However, the new host never shows up in the UI.
When watching the stdio with docker attach container
, it seemed to be in a loop over and over again