node0
, the original node, then share that secret with node1
, the node you want to bootstrap from node0
. Then node1
runs the bootstrap command specifying the clusterβs address and setting the CLUSTER_SECRET
as an env variable.export CLUSTER_SECRET=$(od -vN 32 -An -tx1 /dev/urandom | tr -d ' \n')
echo $CLUSTER_SECRET
ipfs-cluster-service init
ipfs-cluster-service daemon
export CLUSTER_SECRET=<copy from node0>
ipfs-cluster-service init
ipfs-cluster-service daemon --bootstrap /ip4/192.168.1.2/tcp/9096/ipfs/QmZjSoXUQgJ9tutP1rXjjNYwTrRM9QPhmD9GHVjbtgWxEn
// replace with what you see from running node0βs daemonipfs-cluster-ctl peers ls
check your peers to see youβve added node0 correctlyipfs-cluster-ctl peers rm QmYFYwnFUkjFhJcSJJGN72wwedZnpQQ4aNpAtPZt8g5fCd