https://github.com/petemcw/docker-chia-network
My slightly tweaked fork of Chia's docker image.
https://github.com/petemcw/docker-chia-network
chia chia-blockchain chia-network docker
Last synced: 3 months ago
JSON representation
My slightly tweaked fork of Chia's docker image.
- Host: GitHub
- URL: https://github.com/petemcw/docker-chia-network
- Owner: petemcw
- Created: 2021-03-26T20:31:08.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-04-25T00:56:22.000Z (about 2 years ago)
- Last Synced: 2024-12-30T06:13:24.391Z (5 months ago)
- Topics: chia, chia-blockchain, chia-network, docker
- Language: Dockerfile
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# petemcw/docker-chia-network
[Chia Network](https://www.chia.net/) 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](https://www.linkedin.com/in/cohenbram/), the inventor of the BitTorrent network.

## Usage
```bash
docker run -d --name="chia" \
-v :/farm/plots \
-v :/farm/tmp \
-v :/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](https://manpages.ubuntu.com/manpages/focal/man3/DateTime::TimeZone::Catalog.3pm.html).
## Example Commands
For complete reference, visit the [official CLI documentation](https://github.com/Chia-Network/chia-blockchain/wiki/CLI-Commands-Reference) pages.
### Start a Farmer-only Node
When starting the container, you can activate a farmer-only node by passing the following environment variable:
`-e farmer="true"`
### Start a Harvester-only Node
When starting the container, you can activate a harvester-only node by passing the following configuration:
```bash
-v :/farm/ca \
-e harvester="true" \
-e farmer_address="ip.address.of.farmer" \
-e farmer_port="8447" \
-e ca="/farm/ca" \
-e keys="copy"
```### Check Status
`docker exec -it chia venv/bin/chia show -s -c`
### Wallet
`docker exec -it chia venv/bin/chia wallet show`
### Create a Plot
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`