HAProxy Enterprise Documentation 2.1r1

Docker

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

Upgrade to HAProxy Enterprise 2.1r1

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.

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

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

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

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

Next up

Community to Enterprise