Chia Network is a new blockchain and smart transaction platform that is easier to use, more efficient, decentralized, and secure. Chia Network was founded by Bram Cohen, the inventor of the BitTorrent network.
docker run -d --name="chia" \
-v <path to data>:/farm/plots \
-v <path to data>:/farm/tmp \
-v <path to keys file>:/farm/keys.txt \
-p 8444:8444 \
-p 8555:8555 \
-e TZ="America/Chicago" \
-e KEYS="/farm/keys.txt" \
ghcr.io/petemcw/chia-network:latest
The time zone defaults to America/Chicago
. You can configure a timezone using the TZ
environment variable. Check the list of supported time zones.
For complete reference, visit the official CLI documentation pages.
When starting the container, you can activate a farmer-only node by passing the following environment variable:
-e farmer="true"
When starting the container, you can activate a harvester-only node by passing the following configuration:
-v <path to CA directory>:/farm/ca \
-e harvester="true" \
-e farmer_address="ip.address.of.farmer" \
-e farmer_port="8447" \
-e ca="/farm/ca" \
-e keys="copy"
docker exec -it chia venv/bin/chia show -s -c
docker exec -it chia venv/bin/chia wallet show
Create a single, standard k-32
plot using an 8GiB memory buffer, 2 threads, and a bucket size of 32.
docker exec -it chia venv/bin/chia plots create -k 32 -n 1 -b 8000 -r 2 -u 32 -t /farm/tmp -d /farm/plots