Docker
Official docker image for bknd
Official bknd
Docker image
The docker image intentially doesn’t copy any data into the image for now, so you can copy the Dockerfile and build the image anywhere.
Locate the Dockerfile either by pulling the repository and navigating to the docker
directory, or download from here.
Building the Docker image
To build the Docker image, run the following command:
If you want to override the bknd version used, you can pass a VERSION
build argument:
Running the Docker container
To run the Docker container, run the following command:
You can pass the same CLI arguments (see Using the CLI guide) to the docker container as you’d do with npx bknd run
, like so:
To mount the data directory to the host, you can use the -v
flag:
Docker compose example
If you want to use docker compose and build the image directly from the git repository.
The docker compose file can be extended to build a specific version of bknd.
Extend the build
section with args
and labels
.
Inside args
, you can pass a VERSION
build argument, and use labels
so the built image receives a unique identifier.