Install with Docker (bundle)

Step-by-step Docker install from the signed bundle, licence apply, collector for Docker Compose projects, resource caps, stop, uninstall and upgrade.

On this page

Use absolute paths. B is the unpacked bundle folder, S the state folder (must not exist or be empty).

1. Install#

sh
B=/abs/path/drillo-bundle-<version>; S=/abs/path/drillo-state
docker load -i $B/runner.tar
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v $B:$B -v $(dirname $S):$(dirname $S) \
    drillo-runner:<version> $B/install.sh --pin $B/vendor.pub --state $S --name drillo
  • API at https://localhost:18080, gate at https://localhost:14318, both on 127.0.0.1 with an internal CA.
  • The admin login is printed once and kept in $S/secrets/admin.pw. The gate token is $S/secrets/gate.token. The client CA is $S/tls/ca.pem.
  • Without a licence the install runs with Free limits. A good run ends with install OK ... (0 FAIL).

2. Apply a licence#

Add --licence /abs/path/licence.json to the install, or on a running stack run drillo licence-apply /abs/dir/licence.json --state $S --name drillo with the same runner container. Check the plan with docker exec drillo-api cat /lic/status.json. The licence must be signed by the issuer key the build trusts.

3. Resource caps#

sh
docker update --cpus 1 --memory 1536m --memory-swap 1536m drillo-ch
docker update --cpus 0.5 --memory 512m --memory-swap 512m drillo-gate drillo-api
docker update --cpus 0.25 --memory 128m --memory-swap 128m drillo-proxy drillo-licence

Only touch containers whose name starts with drillo-. Caps are lost when a container is recreated (upgrade, licence apply): run them again. These limits are not load-tested; the lab benchmarks used 1 CPU and 1.5 GB for the database.

4. Collector for a Docker Compose project#

One extra container (drillo-collector, Vector 0.43.1) reads the logs of containers labelled with your Compose project through the Docker API and sends them to the gate. It never starts, stops or edits your project. The Vector image is not in the bundle: docker pull timberio/vector:0.43.1-alpine once.

sh
cd $B/deploy/ces
DRILLO_NET=drillo-net DRILLO_CA=$S/tls/ca.pem DRILLO_GATE_TOKEN=$(cat $S/secrets/gate.token) \
    docker compose -p drillo -f compose.collector.yaml up -d

Set CES_PROJECT to your Compose project name. Lines written before the collector starts are not collected. Delivery takes about 5 to 10 s. The Docker socket is mounted read-only, which does not make the Docker API read-only; compose.socket-proxy.yaml is stricter but was not tested. Hostname verification is off for the proxy alias (the chain is still checked against the installed CA).

5. Masking test line#

sh
curl --cacert $S/tls/ca.pem -X POST https://localhost:14318/v1/logs \
    -H "authorization: Bearer $(cat $S/secrets/gate.token)" -H 'X-Drillo-Stream: test' \
    --data-binary '{"ts":'$(date +%s)'000,"level":"error","service":"api","host":"h","msg":"MASKTEST jane.doe@example.com card 4111111111111111","attrs":{}}'

Search MASKTEST in the UI. It must read MASKTEST [EMAIL] card [CARD]. Masking is best effort; see Known issues.

6. Fluent Bit and Vector#

Recipes for your own shippers are in Recipes. They have not been verified against a running gate.

Sizing, batch settings and searchable delay: Sizing and tuning.

7. Stop and uninstall#

Stop, keeping data: docker stop drillo-collector drillo-licence drillo-api drillo-proxy drillo-gate drillo-ch (start in reverse order). Uninstall: run deploy/ces/uninstall.sh --name drillo --state $S inside the runner container without --yes first to preview. It removes only drillo-* containers, drillo volumes and network, and refuses protected project names. Remove the collector first. Images stay on disk.

8. Upgrade#

sh
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v $B:$B -v $(dirname $S):$(dirname $S) \
    drillo-runner:<new-version> drillo upgrade --bundle $B --pin $B/vendor.pub --state $S --name drillo

In our test, an upgrade between two test builds passed all checks and kept 152,000 stored rows. Re-apply resource caps afterwards. Rollback and its limits are in Install and upgrade.

Report an inaccuracy (opens a support ticket in the portal; nothing is sent from this page)