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.

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

    nix
    sudo docker pull hapee-registry.haproxy.com/haproxy-enterprise:2.8r1
    nix
    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:

    nix
    sudo docker stop <OLD CONTAINER NAME>
    sudo docker rm <OLD CONTAINER NAME>
    nix
    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.

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

Do you have any suggestions on how we can improve the content of this page?