HAProxy Enterprise Documentation 1.8r2

Docker

Uninstall and remove all HAProxy Enterprise Docker containers.

  1. List all of your containers.

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

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

    Note

    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.

    $ 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.

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

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