If your installation uses Podman as the container runtime, remove Ops Center Administrator as follows:
- From the command prompt, log in to the OS using a root user or a normal user account. If you log in as a normal user, use the sudo command to complete the following procedure as the root user.
- Stop all containers and services by using the following commands:
systemctl stop rainier systemctl disable rainier systemctl stop rainier-pipe systemctl disable rainier-pipe
-
Remove all containers by using the following command:
podman rm -fv $(podman ps --format "{{.ID}} {{.Image}}" -a | grep "rdocker:6000/" | awk '{ print $1 }') 2>/dev/null
- Remove all Podman images by using the following command:
podman rmi $(podman images --format "{{.ID}} {{.Repository}}" | grep "rdocker:6000/" | awk '{ print $1 }')
-
Remove all Podman volumes by using the following commands:
podman volume rm nginx-certificates podman volume rm nginx-certificates-override podman volume rm nginx-confd podman volume rm nginx-log
- To remove the configuration files, run the following command:
/opt/rainier/bin/rainier-config-remove
- To remove the remaining files, run the following commands:
rm -rf /opt/rainier rm -rf /var/log/rainier-audit-log rm -rf /var/logs/rainier-tool rm -rf /var/logs/rainier-elastic-store rm -rf /var/run/host-manager.sock rm -rf /var/logs/rainier-logs rm -rf /var/logs/rainier-ubi rm -rf /var/opt/rainier-ubi rm -f /etc/systemd/system/rainier.service rm -f /etc/systemd/system/rainier-pipe.service rm -f /etc/containers/containers.conf.d/rainier.conf
Note: When using Podman 4.0.x, the SELinux label of the /var/run/podman/podman.sock file is relabeled as container_file_t and the podman.socket service cannot be restarted, which generates an access error. Check whether there is a container_file_t label by running the following command:ls -Z /var/run/podman/podman.sock
For example,# ls -Z /var/run/podman/podman.sock system_u:object_r:container_file_t:s0 /var/run/podman/podman.sock
If there is a container_file_t label, restore the original label by running the following command:restorecon -F /var/run/podman/podman.sock