HAProxy Enterprise Documentation 2.6r1

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

Next up

Configuration