docker run --name <container-name> -d guanana2/flax-docker
(optional -v /path/to/plots:plots)
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"
docker exec -it flax venv/bin/flax plots add -d /plots
docker exec -it flax venv/bin/flax show -s -c
docker run -d --expose=56888 -e testnet=true --name <container-name> ghcr.io/flax-network/flax:latest
docker exec -it flax-farmer1 venv/bin/flax wallet show