Public | Automated Build

Last pushed: 3 years ago
Short Description
Run haproxy with sshd
Full Description

Haproxy / SSHD Dockerfile

This repository contains a fork of Docker's automated build published to the public Docker Hub Registry.

It was forked to use supervisord to start haproxy and sshd.

Base Docker Image


  1. Install Docker.

  2. Download automated build from public Docker Hub Registry: docker pull llamashoes/haproxy-sshd

    (alternatively, you can build an image from Dockerfile: docker build -t="llamashoes/haproxy-sshd"


docker run -d -p 80:80 -p 22 llamashoes/haproxy-sshd

You can then run docker ps and check the host port that was forwarded to port 22, then ssh into the container on
that port using the username:password set in the Dockerfile (default is root:changeme).

Customizing Haproxy and log dir

docker run -d -p 80:80 -p 22 -v <override-dir>:/haproxy-override llamashoes/haproxy-sshd


docker run -d -p 80:80 -p 22 -v <override-dir>:/haproxy-override -v <log-dir>:/var/log llamashoes/haproxy-sshd

where <override-dir> is an absolute path of a directory that could contain:

  • haproxy.cfg: custom config file (replace /dev/log with, and comment out daemon)
  • errors/: custom error responses

and <log-dir> is an absolute path for log files.

After few seconds, open http://<host> to see the haproxy stats page.

Docker Pull Command
Source Repository