Forest in Dockerπ²β€οΈπ
Prerequisitesβ
- Docker engine installed and running. Forest containers are confirmed to run on
the following engines:
- Docker Engine (Community) on Linux,
- Docker for macOS
- Docker on Windows Subsystem for Linux 2(WSL2)
Native images are available for the following platform/architecture(s):
linux/arm64linux/amd64
The images will work out-of-the box on both Intel processors and macOS with M1 / M2.
Tagsβ
For the list of all available tags please refer to the Forest packages.
Currently, the following tags are produced:
latest- latest stable release,latest-fat- latest stable release with necessary downloadable files preloaded,edge- latest development build of themainbranch,edge-fat- latest development build of themainbranch with necessary downloadable files preloaded,date-digeste.g.,2023-02-17-5f27a62- all builds that landed on themainbranch,date-digest-fate.g.,2023-02-17-5f27a62-fat- all builds that landed on themainbranch with necessary downloadable files preloaded,- release tags, available from
v0.7.0orv0.7.0-fatonwards.
Security recommendationsβ
- We strongly recommend running the docker daemon in rootless mode
(installation instructions),
or running the daemon-less docker alternative
podman(installation instructions) with non-root user and putalias docker = podman(or manually replace thedockercommands withpodmanin below instructions)
Performance recommendationsβ
- We recommend lowering the swappiness kernel parameter on Linux to 1-10 for
long running forest node by doing
sudo sysctl -w vm.swappiness=[n].
Example usagesβ
List available flags and/or commandsβ
# daemon
β― docker run --init -it --rm ghcr.io/chainsafe/forest:latest --help
# cli
β― docker run --init -it --rm --entrypoint forest-cli ghcr.io/chainsafe/forest:latest --help
# tool
β― docker run --init -it --rm --entrypoint forest-tool ghcr.io/chainsafe/forest:latest --help
# wallet tool
β― docker run --init -it --rm --entrypoint forest-wallet ghcr.io/chainsafe/forest:latest --help
Also see the CLI documentation for more details about commands and their usage.