Skip to content

guanana/flax-docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Un-Official flax Docker Container

Basic Startup

docker run --name <container-name> -d guanana2/flax-docker
(optional -v /path/to/plots:plots)

Configuration

You can modify the behavior of your flax container by setting specific environment variables.

To use your own keys pass as arguments on startup

-v /path/to/key/file:/path/in/container -e keys="/path/in/container"

or pass keys into the running container

docker exec -it <container-name> venv/bin/flax keys add

alternatively you can pass in your local keychain, if you have previously deployed flax with these keys on the host machine

-v ~/.local/share/python_keyring/:/root/.local/share/python_keyring/

To start a farmer only node pass

-e farmer="true"

To start a harvester only node pass

-e harvester="true" -e farmer_address="addres.of.farmer" -e farmer_port="portnumber"

or run commands externally with venv (this works for most flax XYZ commands)

docker exec -it flax venv/bin/flax plots add -d /plots

status from outside the container

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

Connect to testnet?

docker run -d --expose=56888 -e testnet=true --name <container-name> ghcr.io/flax-network/flax:latest

Need a wallet?

docker exec -it flax-farmer1 venv/bin/flax wallet show

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Shell 58.8%
  • Dockerfile 41.2%