The Storj Share Daemon+CLI (https://github.com/Storj/storjshare-daemon).
Originally by oreandawe(zannen), just updated to remove tunnels and add ability to specify port
docker pull toasterlint/storjshare-cli:latest
Start the daemon by using this command (optional args shown in square brackets with default values):
docker run --detach \
--name mystorjdaemon \
--restart=always \
-v /path/to/storjdata:/storj \
-p 4000:4000 \
-e WALLET_ADDRESS=your_ERC20_wallet_address \
[-e DATADIR=/storj] \
[-e SHARE_SIZE=1TB] \
[-e RPCADDRESS=0.0.0.0] \
[-e RPCPORT=4000] \
[-e USE_HOSTNAME_SUFFIX=FALSE] \
toasterlint/storjshare-cli:latest
Check the status of the daemon by using this command:
docker exec mystorjdaemon storjshare status
The output should look something like this:
┌─────────────────────────────────────────────┬─────────┬──────────┬──────────┬─────────┬───────────────┬─────────┬──────────┬───────────┬──────────────┐
│ Share │ Status │ Uptime │ Restarts │ Peers │ Allocs │ Delta │ Port │ Shared │ Bridges │
├─────────────────────────────────────────────┼─────────┼──────────┼──────────┼─────────┼───────────────┼─────────┼──────────┼───────────┼──────────────┤
│ abcdefabcdefabcdefabcdefabcdefabcdefabcd │ running │ 4d 22h … │ 0 │ 243 │ 30 │ 20ms │ 1234 │ 15.00MB │ connected │
│ → /storj/share │ │ │ │ │ 15 received │ │ (Tunnel) │ (1%) │ │
└─────────────────────────────────────────────┴─────────┴──────────┴──────────┴─────────┴───────────────┴─────────┴──────────┴───────────┴──────────────┘
Stop the daemon by using these commands:
docker stop mystorjdaemon
docker rm mystorjdaemon
Check versions for npm
, node
and storjshare
with:
docker run --rm -ti --entrypoint /versions toasterlint/storjshare-cli:latest
node version:
v6.7.0
npm version:
{ npm: '3.10.3',
ares: '1.10.1-DEV',
http_parser: '2.7.0',
icu: '57.1',
modules: '48',
node: '6.7.0',
openssl: '1.0.2k',
uv: '1.9.1',
v8: '5.1.281.83',
zlib: '1.2.11' }
storjshare version:
daemon: 5.3.0, core: 8.5.0, protocol: 1.2.0
Or run an interactive shell:
docker run --rm -ti --entrypoint /bin/sh toasterlint/storjshare-cli
Or connect to an existing container:
docker exec -ti nameofyourcontainer /bin/sh