Uninstallation
Uninstall HAProxy Enterprise on Docker
Uninstall and remove all HAProxy Enterprise Docker containers.
-
List all of your containers:
nixsudo docker ps -a --no-truncnixsudo docker ps -a --no-trunc -
List all of your containers that match the string
hapee
:nixsudo docker ps -a --no-trunc | grep hapeenixsudo docker ps -a --no-trunc | grep hapeeVerify that the string
hapee
exactly matches the list of containers that you wish to remove, as matching containers will be permanently removed. -
Stop the HAProxy Enterprise containers that match the string
hapee
:nixsudo docker ps -a --no-trunc | \grep hapee | \awk '{print $1}' | \xargs -r --no-run-if-empty sudo docker stopnixsudo docker ps -a --no-trunc | \grep hapee | \awk '{print $1}' | \xargs -r --no-run-if-empty sudo docker stop -
Remove the HAProxy Enterprise containers that match the string
hapee
:nixsudo docker ps -a --no-trunc | \grep hapee | \awk '{print $1}' | \xargs -r --no-run-if-empty sudo docker rmnixsudo docker ps -a --no-trunc | \grep hapee | \awk '{print $1}' | \xargs -r --no-run-if-empty sudo docker rm -
Optional: Remove the corresponding container images:
nixsudo docker images --no-trunc | \grep hapee | \awk '{print $3}' | \xargs -r --no-run-if-empty sudo docker rminixsudo docker images --no-trunc | \grep hapee | \awk '{print $3}' | \xargs -r --no-run-if-empty sudo docker rmi
Do you have any suggestions on how we can improve the content of this page?