Uninstallation

Uninstall HAProxy Enterprise on Docker

Uninstall and remove all HAProxy Enterprise Docker containers.

  1. List all of your containers:

    nix
    sudo docker ps -a --no-trunc
    nix
    sudo docker ps -a --no-trunc
  2. List all of your containers that match the string hapee:

    nix
    sudo docker ps -a --no-trunc | grep hapee
    nix
    sudo docker ps -a --no-trunc | grep hapee

    Verify that the string hapee exactly matches the list of containers that you wish to remove, as matching containers will be permanently removed.

  3. Stop the HAProxy Enterprise containers that match the string hapee:

    nix
    sudo docker ps -a --no-trunc | \
    grep hapee | \
    awk '{print $1}' | \
    xargs -r --no-run-if-empty sudo docker stop
    nix
    sudo docker ps -a --no-trunc | \
    grep hapee | \
    awk '{print $1}' | \
    xargs -r --no-run-if-empty sudo docker stop
  4. Remove the HAProxy Enterprise containers that match the string hapee:

    nix
    sudo docker ps -a --no-trunc | \
    grep hapee | \
    awk '{print $1}' | \
    xargs -r --no-run-if-empty sudo docker rm
    nix
    sudo docker ps -a --no-trunc | \
    grep hapee | \
    awk '{print $1}' | \
    xargs -r --no-run-if-empty sudo docker rm
  5. Optional: Remove the corresponding container images:

    nix
    sudo docker images --no-trunc | \
    grep hapee | \
    awk '{print $3}' | \
    xargs -r --no-run-if-empty sudo docker rmi
    nix
    sudo 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?