21 lines
556 B
Bash
21 lines
556 B
Bash
#!/usr/bin/env bash
|
|
|
|
# Stop and remove all running containers
|
|
docker ps -aq | xargs docker rm -f
|
|
|
|
# Remove the venv and working dir
|
|
rm -rf /opt/ansible-kolla-venv /opt/ansible-kolla
|
|
|
|
# Remove Kolla config
|
|
rm -rf /etc/kolla
|
|
|
|
# Remove any leftover Docker volumes (Kolla uses Docker)
|
|
docker volume prune -f
|
|
|
|
# Remove Kolla Docker images if you want a full clean
|
|
docker images | grep kolla | awk '{print $3}' | xargs docker rmi -f
|
|
|
|
# Remove Docker itself if you want to go all the way
|
|
dnf remove -y docker-ce docker-ce-cli containerd.io
|
|
rm -rf /var/lib/docker
|