Upgrade

Upgrade HAProxy Enterprise on Docker

You can upgrade HAProxy Enterprise to version 2.8r1 as a Docker container.

Upgrade to HAProxy Enterprise 2.8r1 Jump to heading

The following upgrade procedure installs a new major version of HAProxy Enterprise.

  1. Log into the hapee-registry.haproxy.com Docker registry, using the key you were given when you registered as the username and password.

    bash
    sudo docker login https://hapee-registry.haproxy.com
    bash
    sudo docker login https://hapee-registry.haproxy.com
  2. Pull the HAProxy Enterprise image.

    bash
    sudo docker pull hapee-registry.haproxy.com/haproxy-enterprise:2.8r1
    bash
    sudo docker pull hapee-registry.haproxy.com/haproxy-enterprise:2.8r1
  3. Create an HAProxy Enterprise configuration file (i.e. hapee-lb.cfg) that defines your load balancer settings.

  4. Stop and remove any previously running HAProxy Enterprise containers:

    bash
    sudo docker stop <OLD CONTAINER NAME>
    sudo docker rm <OLD CONTAINER NAME>
    bash
    sudo docker stop <OLD CONTAINER NAME>
    sudo docker rm <OLD CONTAINER NAME>
  5. Start the new Docker container, referencing the directory containing your configuration file as a volume by using the -v flag.

    bash
    sudo docker run \
    --name hapee-2.8 \
    -d \
    -p 80:80 \
    -p 443:443 \
    -p 5555:5555 \
    -v $(pwd):/etc/hapee-2.8 \
    --restart=unless-stopped \
    hapee-registry.haproxy.com/haproxy-enterprise:2.8r1
    bash
    sudo docker run \
    --name hapee-2.8 \
    -d \
    -p 80:80 \
    -p 443:443 \
    -p 5555:5555 \
    -v $(pwd):/etc/hapee-2.8 \
    --restart=unless-stopped \
    hapee-registry.haproxy.com/haproxy-enterprise:2.8r1

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