Skip to content

plyint/chia-docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Official Chia Docker Container

Currently latest = head of dev branch

tagged releases to match rc and more to come shortly

Initialize

docker run (optional --expose=58444 to run a testnet node)--name chia (chia-farmer, chia-harvester1 etc.) -d ghcr.io/chia-network/chia:latest (optional -v /path/to/plots:plots)

Config management

docker exec -it chia /bin/bash
vim (or nano if you prefer) ~/.chia/testnet/config/config.yaml

modify the line

self_hostname: &self_hostname "localhost"

to match

self_hostname: &self_hostname "127.0.0.1"

optional: remote harvester

 harvester:
  # The harvester server (if run) will run on this port
  port: 8448
  farmer_peer:
    host: *self_hostname
    port: 8447

include the proper host and port for your remote farmer node or container.

Starting Chia Blockchain

remain in the container with a bash shell

Activate venv

. ./activate

If you have your own keys

chia keys add (follow prompt)

or

echo "keys" | chia keys add -

To generate keys

chia keys generate

If added the optional plots earlier

chia plots add -d /plots

you can start chia as usual

chia start farmer
optional single purpose node
(chia start farmer-only)
(chia start harvester)

verify things are working

chia show -s -c

drop from shell, leave running Container

exit

or run the same commands externally with venv

docker exec -it chia venv/bin/chia keys generate OR docker exec -it chia venv/bin/chia keys add
docker exec -it chia venv/bin/chia plots add -d /plots
docker exec -it chia venv/bin/chia start farmer

status from outside the container

docker exec -it chia venv/bin/chia show -s -c

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 89.8%
  • Shell 10.2%