Skip to content

TIP

Butler SOS Docker images are automatically built for several architectures, using Debian 12 as the base OS:

  • amd64: This is by far the most common platform - your typical Intel based server use amd64.
  • arm64: Arm servers are now available from most cloud providers and offer very competitive price/performance. Apple's M-series CPUs also use arm64, as does the newer Raspberry Pi models.
  • arm/v7: An older Arm architecture found in previous-gen Raspberry Pis, for example.

All images are available on Docker Hub.

Docker is great in that it runs on many different platforms.
This means that as long as the Docker runtime environment is installed, you can run Butler SOS on your Mac laptop, on a Linux server or on a Windows server.
Or in a Kubernetes cluster to get enterprise grade process monitoring of Butler SOS.

As for Raspberry Pi - yes, it works. But it's not in any shape or form recommended for production use. Fun to try out, though! 😎

Installation ​

Docker runtime ​

Installing Docker is beyond the scope of this document, but there are plenty of online tutorials covering this.

Butler SOS installation and configuration ​

When using Docker there is no installation in the traditional sense.
Instead we (in this case) use a docker-compose file to define how Butler SOS should be executed within a Docker container. There are also other ways to start Docker containers, but docker-compose is usually a good and robust starting point.

Configuration of Butler specific settings is then done using Butler's own JSON/YAML config file.

Full Stack Example

If you want to quickly bring up a complete stack with Butler SOS, InfluxDB, and Grafana to see it in action, check out the Docker Compose Stack Example.

Install & configure - walkthrough ​

Create a directory for Butler SOS. Config files and logs will be stored here.
This example uses macOS but the commands will be very similar on Linux.
Docker on Windows is another story - it's there and works great, but not always identical to Linux/macOS.

bash
➜  butler-sos-demo mkdir -p butler-sos-docker/config/certificate
➜  butler-sos-demo mkdir -p butler-sos-docker/log
➜  butler-sos-demo cd butler-sos-docker
➜  butler-sos-docker

Linux hosts: give the log folder to uid 1000

On a Linux host, a folder mounted into the container must be writable by uid 1000, the user Butler SOS runs as in the container. See Log files and crash dumps in the container.

  1. Create a docker-compose.yml file like the one shown below in the Butler SOS directory that was created above. The Docker Compose examples in the GitHub repository are another good starting point. The directory where the docker-compose file is stored is the 'root' directory of Butler SOS - everything else is relative to this directory.

  2. Adapt the docker-compose file as needed (usually no changes are needed if you want to run the latest version of Butler SOS).

  3. Copy the YAML config file from the GitHub repository into the ./config directory, rename it to production.yaml (or something else, as long as it matches the file name given with --configfile in the docker-compose.yml file) and edit it as needed. Note that for the Docker setup the path to certificates (as specified in the YAML config file) should be /nodeapp/config/certificate/ (this is the Docker container's internal path to the certificate directory).

  4. Edit the config file above as needed, with respect to your local Sense environment, folder paths etc. The provided template file has reasonable default settings where possible, but there are also a number of paths, passwords etc that must be configured.

  5. Export certificates from the QMC in Qlik Sense Enterprise, place them in the ./config/certificate directory (i.e. in a subdirectory to the directory where the docker-compose file is stored). The certificates can in theory be placed anywhere, as long as they are made available to the Docker container via a volume mount in the docker-compose.yaml file (e.g. - "./config:/nodeapp/config").

Let's do this one step at a time.
Here we will bring up a single container with Butler SOS in it.
The Butler SOS config file is called production.yaml.

First, what files are there?

bash
➜  butler-sos-docker ls -la
total 8
drwxr-xr-x  5 goran  staff   160 Aug 21 19:08 .
drwxr-xr-x  3 goran  staff    96 Aug 21 18:49 ..
drwxr-xr-x  4 goran  staff   128 Aug 21 19:08 config
-rw-r--r--  1 goran  staff  1505 Aug 21 19:01 docker-compose.yml
drwxr-xr-x  2 goran  staff    64 Aug 21 18:49 log
➜  butler-sos-docker
➜  butler-sos-docker ls -la config
total 48
drwxr-xr-x  4 goran  staff    128 Aug 21 19:08 .
drwxr-xr-x  5 goran  staff    160 Aug 21 19:08 ..
drwxr-xr-x  5 goran  staff    160 Aug 21 19:08 certificate
-rw-r--r--  1 goran  staff  21903 Aug 21 19:08 production.yaml
➜  butler-sos-docker
➜  butler-sos-docker ls -la config/certificate
total 24
drwxr-xr-x  5 goran  staff   160 Aug 21 19:08 .
drwxr-xr-x  4 goran  staff   128 Aug 21 19:08 ..
-rw-r--r--@ 1 goran  staff  1170 Aug 21 19:06 client.pem
-rw-r--r--@ 1 goran  staff  1704 Aug 21 19:06 client_key.pem
-rw-r--r--@ 1 goran  staff  1224 Aug 21 19:06 root.pem
➜  butler-sos-docker

What does the docker-compose.yml file look like?

bash
➜  butler-sos-docker cat docker-compose.yml
# docker-compose.yml
services:
    butler-sos:
        image: ptarmiganlabs/butler-sos:latest
        container_name: butler-sos
        restart: always
        command:
          - "node"
          - "src/butler-sos.js"
          - "--configfile"
          - "/nodeapp/config/production.yaml"
        volumes:
            # Make config file and log files accessible outside of container
            - "./config:/nodeapp/config"
            - "./log:/nodeapp/log"
        logging:
            driver: "json-file"
            options:
                max-file: "5"
                max-size: "5m"

➜  butler-sos-docker

Ok, all good. Let's start the container using docker-compose (the exact output will depend on what version of Butler SOS you are using and what features you have enabled in its YAML config file).

bash
➜  butler-sos-docker docker compose up
Creating network "butler-sos-docker_senseops" with driver "bridge"
Creating butler-sos ... done
Attaching to butler-sos
butler-sos    | 2022-08-23T03:45:28.754Z info: CONFIG: Influxdb enabled: true
butler-sos    | 2022-08-23T03:45:28.757Z info: CONFIG: Influxdb host IP: 192.168.100.20
butler-sos    | 2022-08-23T03:45:28.757Z info: CONFIG: Influxdb host port: 8086
butler-sos    | 2022-08-23T03:45:28.758Z info: CONFIG: Influxdb db name: senseops
butler-sos    | 2022-08-23T03:45:29.003Z info: CONFIG: Found InfluxDB database: senseops
butler-sos    | 2022-08-23T03:45:29.219Z info: --------------------------------------
butler-sos    | 2022-08-23T03:45:29.220Z info: Starting Butler SOS
butler-sos    | 2022-08-23T03:45:29.220Z info: Log level: verbose
butler-sos    | 2022-08-23T03:45:29.221Z info: App version: 9.2.0
butler-sos    | 2022-08-23T03:45:29.221Z info: Instance ID    : 87b978019ae........
butler-sos    | 2022-08-23T03:45:29.222Z info:
butler-sos    | 2022-08-23T03:45:29.223Z info: Node version   : v18.7.0
butler-sos    | 2022-08-23T03:45:29.223Z info: Architecture   : x64
butler-sos    | 2022-08-23T03:45:29.224Z info: Platform       : linux
butler-sos    | 2022-08-23T03:45:29.224Z info: Release        : 11
butler-sos    | 2022-08-23T03:45:29.224Z info: Distro         : Debian GNU/Linux
butler-sos    | 2022-08-23T03:45:29.224Z info: Codename       : bullseye
butler-sos    | 2022-08-23T03:45:29.224Z info: Virtual        : false
butler-sos    | 2022-08-23T03:45:29.225Z info: Processors     : 4
butler-sos    | 2022-08-23T03:45:29.225Z info: Physical cores : 4
butler-sos    | 2022-08-23T03:45:29.225Z info: Cores          : 4
butler-sos    | 2022-08-23T03:45:29.226Z info: Docker arch.   : undefined
butler-sos    | 2022-08-23T03:45:29.226Z info: Total memory   : 6233055232
butler-sos    | 2022-08-23T03:45:29.226Z info: Standalone app : false
butler-sos    | 2022-08-23T03:45:29.226Z info: --------------------------------------
butler-sos    | 2022-08-23T03:45:29.226Z info: Client cert: /nodeapp/config/certificate/client.pem
butler-sos    | 2022-08-23T03:45:29.227Z info: Client cert key: /nodeapp/config/certificate/client_key.pem
butler-sos    | 2022-08-23T03:45:29.227Z info: CA cert: /nodeapp/config/certificate/root.pem
butler-sos    | 2022-08-23T03:45:29.250Z verbose: MAIN: Anonymous telemetry reporting has been set up.
butler-sos    | 2022-08-23T03:45:29.252Z verbose: MAIN: Starting Docker healthcheck server...
butler-sos    | 2022-08-23T03:45:29.257Z info: USER EVENT: UDP server listening on 0.0.0.0:9997
butler-sos    | 2022-08-23T03:45:29.257Z info: LOG EVENT: UDP server listening on 0.0.0.0:9996
butler-sos    | 2022-08-23T03:45:29.290Z info: MAIN: Started Docker healthcheck server on port 12398.
butler-sos    | 2022-08-23T03:45:29.290Z info: MAIN: Starting Prometheus Butler SOS endpoint on 0.0.0.0:9842.
butler-sos    | 2022-08-23T03:45:29.291Z verbose: PROM: Setting up Prometheus client for server: sense1
butler-sos    | 2022-08-23T03:45:29.292Z verbose: PROM: Setting up Prometheus client for server: sense2
butler-sos    | 2022-08-23T03:45:29.310Z info: PROM: Prometheus Butler SOS metrics server now listening on port 9842
butler-sos    | 2022-08-23T03:45:29.311Z info: PROM: Prometheus Node.js metrics server now listening on port 0.0.0.0:9001
butler-sos    | 2022-08-23T03:45:30.911Z verbose: --------------------------------
butler-sos    | 2022-08-23T03:45:30.911Z verbose: Iteration # 1, Uptime: 0 months, 0 days, 0 hours, 0 minutes, 2.005 seconds, Heap used 33.26 MB of total heap 58.39 MB. External (off-heap): 3.57 MB. Memory allocated to process: 92.45 MB.
butler-sos    | 2022-08-23T03:45:31.051Z verbose: UPTIME NEW RELIC: Sent Butler SOS memory usage data to New Relic account 123456789 ("Ptarmigan Labs NR account")
butler-sos    | 2022-08-23T03:45:31.269Z verbose: MEMORY USAGE INFLUXDB: Sent Butler SOS memory usage data to InfluxDB
...

Once everything everything looks good you can stop the containers (ctrl-C), then start them again in daemon mode (i.e. running unattended in the background):

bash
➜  butler-sos-docker docker-compose up -d
Starting butler-sos ... done
➜  butler-sos-docker

Setting the log level to info in the config file will reduce log output.

The Docker container implements Docker healthchecks, which means you can run docker ps to see whether the container is healthy or not. The healthcheck follows the Butler-SOS.dockerHealthCheck settings in the config file; see Docker Healthcheck:

bash
➜  butler-sos-docker docker ps
CONTAINER ID   IMAGE                             COMMAND                  CREATED              STATUS                    PORTS     NAMES
9d2253511a24   ptarmiganlabs/butler-sos:latest   "docker-entrypoint.s…"   About a minute ago   Up 17 seconds (healthy)             butler-sos
➜  butler-sos-docker

What is in the image ​

The image is built on Debian Linux, and only Node.js itself is added to it. For the results of vulnerability scans of the image, see Build Security.

No npm, npx, Corepack or Yarn ​

Changed in 15.1.1

Before Butler SOS 15.1.1, the Docker image was built on the official Node.js image and included npm, npx, Corepack and Yarn.

The Butler SOS Docker image does not contain the Node.js package managers: npm, npx, Corepack and Yarn. Butler SOS itself does not use any of them while it runs, so for most installations nothing changes: the container starts, runs and reports its health exactly as before.

Why they were removed ​

The Docker image used to be built on the official Node.js image, and that image ships with npm, Corepack and Yarn. They come with their own supporting packages, separate from the ones Butler SOS uses. Butler SOS installs everything it needs while the image is being built, and never calls a package manager afterwards — yet all of them were still present in every published image.

That matters when you scan the image for known vulnerabilities, as many organisations do before running a container. A scan of the Butler SOS 15.1.0 image with Trivy reported 24 findings rated HIGH or CRITICAL. Eleven of them, one of them CRITICAL, were in npm's own supporting packages (tar, undici, brace-expansion and ip-address), not in Butler SOS. They could not be fixed by updating Butler SOS, because Butler SOS does not control which versions npm brings along.

The image is now built on Debian Linux directly, and only Node.js itself is added to it. The package managers are not just hidden: they are not part of the image at all.

What stays the same ​

  • The container's start command and its health check both call Node.js directly, and Node.js is still in the image.
  • Butler SOS still runs as the user node, with user and group ID 1000. Files it writes to mounted volumes keep the same ownership as before.
  • A command you give the container, in Docker Compose or on the docker run command line, is handled exactly as before.

What you need to do ​

Nothing, if you run the Butler SOS container in the usual way — with docker run, Docker Compose or similar — and configure it through its YAML config file.

Check your setup if any of these apply to you, because each now fails with an error saying that npm, npx or yarn is not found:

  • You build your own image on top of the Butler SOS image. A Dockerfile that starts with FROM ptarmiganlabs/butler-sos and then runs npm install, npx or yarn no longer builds. Install the extra packages in a separate build stage based on the official Node.js image, and copy the result into your image, or ask yourself whether you still need them.

  • You override the container's command. A Docker Compose command:, a Kubernetes command or args, or a docker run command line that starts Butler SOS through npm start, npm run or npx no longer works. Call Node.js directly instead, for example:

    yaml
    command: ['node', 'src/butler-sos.js', '-c', '/nodeapp/config/production.yaml']
  • You open a shell inside the running container (for example with docker exec) and type npm, npx or yarn. If you were doing this for troubleshooting, use node instead, which is still available:

    bash
    docker exec -it butler-sos node --version

    (Replace butler-sos with the name of your container.)

Node.js 24.22.1 and blocked emSign certificates ​

Changed in 15.1.3

Butler SOS 15.1.3 moved the Docker image from Node.js 24.21.0 to 24.22.1, a security release from 2026-10-20.

The Butler SOS Docker image runs on Node.js 24.22.1. Earlier images ran on 24.21.0. Node.js 24.22.1 is a security release from 2026-10-20. Nothing changes in how you run or configure the container.

Most installations need to do nothing. There is one change you might notice: Node.js rejects certificates issued through eight intermediate certificate authorities of eMudhra (emSign), whose private keys were reported compromised in October 2026. If a server that Butler SOS connects to has a certificate issued through one of those eight, that connection fails. Other emSign certificates are still trusted.

What the update fixes ​

  • Certificate trust. Node.js carries a blocklist of the eight compromised emSign intermediates. Certificates issued through them could have been forged. Other intermediates under the same emSign roots are not affected.
  • Compressed data. A flaw in Brotli decompression (CVE-2026-111497) could let a malicious server run code inside the container.
  • Server name checks. Two flaws let a secure (TLS) connection accept a certificate that was issued for a different server name.

Who might be affected by the certificate change ​

Node.js checks the blocklist on every secure connection Butler SOS makes. That includes connections whose certificates you trust through your own CA files. So a connection can be affected whichever way you trust it.

What matters is whether the server's certificate chain passes through one of the eight blocked intermediates:

  • Connections to servers with certificates from your own private CA, such as the Qlik Sense server certificates you give Butler SOS, are not affected. A private CA is not part of the emSign hierarchy.
  • Connections to servers with publicly issued certificates can be affected, if the certificate was issued by emSign. Typical examples are InfluxDB (a cloud service, or a server with a public certificate), MQTT brokers reached over TLS, New Relic, and webhooks or other HTTPS endpoints you have configured. The same applies if you have added an emSign certificate to a CA file of your own.

Few public servers use emSign certificates, so most installations will see no difference.

How to check a server's certificate ​

Run this from any machine with OpenSSL. Replace the host name and port with those of the server Butler SOS connects to:

bash
openssl s_client -connect influxdb.example.com:443 -showcerts </dev/null 2>/dev/null | grep -E '^ *(s|i):'

The i: lines show who issued each certificate in the chain:

  • No output at all: the check did not reach the server's certificate. A wrong host name or port, a firewall, or a failed connection gives this result, and it tells you nothing about the certificate. Correct the host name and port and run the command again. To see why it failed, run it without 2>/dev/null.
  • i: lines are shown, and none mentions emSign or eMudhra: the connection is not affected.
  • A line mentions emSign or eMudhra: the connection might be affected, but this alone does not prove it, because only eight of emSign's intermediates are blocked. Confirm it in one of two ways:
    • Run the new Butler SOS release in a test environment against that server, and look for the error described below.
    • Ask whoever runs the server, or emSign, whether the certificate was issued through one of the intermediates distrusted in October 2026.

What you see if a connection is affected ​

Butler SOS logs an error for that connection, because the certificate can no longer be verified. The error says that the certificate has been revoked (CERT_REVOKED). Other connections keep working.

What to do ​

If a connection is affected, ask whoever runs that server to replace its certificate with one that does not chain through a blocked intermediate. A certificate that emSign reissues through one of its unaffected intermediates works too. Certificates that only look similar, for example other emSign certificates, do not need replacing.

Do not work around the failure by turning off certificate checking for that connection. These eight intermediates were blocked because certificates issued through them can no longer be relied on.

Log files and crash dumps in the container ​

Changed in 15.4.0

Before Butler SOS 15.4.0, a container started without a volume at /nodeapp/log stopped at once with exit code 1, because the user Butler SOS runs as could not create that folder.

The config template writes log files to log, which in the container is /nodeapp/log. Crash dumps go to /nodeapp/crash_dumps.

The image has both folders, /nodeapp/log and /nodeapp/crash_dumps, writable by the user Butler SOS runs as. A container starts with the default config whether or not a volume is mounted there. Without a volume, log files and crash dumps stay inside the container, and are gone when the container is removed. With a volume, they go to the volume.

Before 15.4.0 the image had no such folders, and a container started without a volume at /nodeapp/log stopped at once, with exit code 1:

FATAL: Uncaught exception – writing crash dump… Cannot write log files to "/nodeapp/log", set by Butler-SOS.logDirectory: EACCES: permission denied, mkdir '/nodeapp/log/'. Absolute paths are used as given; for a folder inside the Butler SOS folder, use a relative path such as "log".

The advice at the end of that message pointed the wrong way: the setting already was the relative log. No crash dump was written either, because the crash dump folder, /nodeapp/crash_dumps, couldn't be created for the same reason. The Docker Compose examples mount a volume at /nodeapp/log, so they were not affected.

The error message gives only advice that fits. The hint about absolute paths appears only when Butler-SOS.logDirectory is an absolute path. When the cause is a missing permission (EACCES or EPERM), the message says which user needs write access:

Cannot write log files to "/nodeapp/log", set by Butler-SOS.logDirectory: EACCES: permission denied, mkdir '/nodeapp/log/'. The user Butler SOS runs as needs permission to create and write that folder. In the Docker image that user is "node", uid 1000, so a folder mounted there from a Linux host must be writable by uid 1000.

What to do:

  • To keep the log files, mount a volume at /nodeapp/log, as the Docker Compose examples do, and at /nodeapp/crash_dumps if you want to keep crash dumps too.

  • On a Linux host, with a folder from the host mounted there (a bind mount, such as ./log:/nodeapp/log): the folder must be writable by uid 1000, the user Butler SOS runs as in the container. Docker creates a missing bind-mount folder as root, so create it first and give it to uid 1000:

    bash
    mkdir -p ./log
    sudo chown 1000:1000 ./log

    A named volume, such as butler-sos-log:/nodeapp/log, needs nothing: Docker gives it the owner of the folder in the image.

If you set Butler-SOS.logDirectory to a full path, mount the volume at that path instead. See Where log files go.

Container log output ​

What Butler SOS prints to the console is what docker logs shows.

  • Plain text. Since Butler SOS 15.5.0, the log levels are not coloured when the output is not a terminal, so docker logs has no colour codes. Starting the container with docker run -t, or tty: true in Docker Compose, makes the output a terminal, and the colour codes come back. See Colour only in a terminal.
  • One line per error. Since Butler SOS 15.1.2, errors in Docker are logged without a stack trace. See One line per error in Docker.

Released under the MIT License.