A simple and scalable docker image for creating Chia plots via https://github.com/swar/Swar-Chia-Plot-Manager.
Required configuration:
- Bind mounting a host temp dir in the container to
/temp(e.g.-v /path/to/sdd/storage/:/temp) - Bind mounting a host plot dir in the container to
/plots(e.g.-v /path/to/hdd/storage/:/plots) - Bind mounting a host config dir in the container to
/config(e.g.-v /path/to/storage/:/config)
Optional configuration:
- Setting the autostart of plotting manager via environment (e.g.
-e AUTOSTART=yes) - Setting the time zone of plotting manager via environment (e.g.
-e TZ=Europe/Berlin)
On first start:
- Open
/config/config.yamlfor editing - Set
chia_locationto/chia-blockchain/venv/bin/chia - Set
log:folder_pathto/config/logs - In the
jobssection set following values for each job:- Set
farmer_public_keyaccording to existing full node (chia keys show) - Set
pool_public_keyaccording to existing full node (chia keys show) - Set
temporary_directoryto/temp - Set
destination_directoryto/plots
- Set
- Adjust the rest according to your needs
Open docker shell:
- docker exec -it
containeridsh
Control plotting:
- python manager.py start (Start plotting jobs according to
config.yaml) - python manager.py restart (Reload after
config.yamlchange - timers will be reset) - python manager.py stop (Stop new plotting jobs - running jobs will be finished)
Observe plotting:
- python manager.py view