Uninstallation

Uninstall HAProxy Enterprise on Docker

Uninstall and remove all HAProxy Enterprise Docker containers.

  1. List all of your containers:

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

    bash
    sudo docker ps -a --no-trunc | grep hapee
    bash
    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:

    bash
    sudo docker ps -a --no-trunc | \
    grep hapee | \
    awk '{print $1}' | \
    xargs -r --no-run-if-empty sudo docker stop
    bash
    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:

    bash
    sudo docker ps -a --no-trunc | \
    grep hapee | \
    awk '{print $1}' | \
    xargs -r --no-run-if-empty sudo docker rm
    bash
    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:

    bash
    sudo docker images --no-trunc | \
    grep hapee | \
    awk '{print $3}' | \
    xargs -r --no-run-if-empty sudo docker rmi
    bash
    sudo docker images --no-trunc | \
    grep hapee | \
    awk '{print $3}' | \
    xargs -r --no-run-if-empty sudo docker rmi

If this page was useful, please, Leave the feedback.