Public | Automated Build

Last pushed: a month ago
Short Description
docker-storjshare-daemon
Full Description

docker-storjshare-daemon

The quick and dirty guide (for now) ...

  1. Create an ERC20 enabled Ethereum wallet. This will also be the address you provide for any STORJ payouts you receive for renting out storage capacity.

  2. First run: docker run --rm -v <config path>:/config madcatsu/docker-storjshare-daemon:latest --disable-services storjshare create --storj <Ethereum wallet address> --storage /data --size 1TB --manualforwarding --rpcaddress <public dns address> --rpcport 4000 --maxtunnels 5 --tunnelportmin 4001 --tunnelportmax 4005 --logdir /logs --noedit --outfile /config/storj-farmer.json

  3. Edit storj-farmer.json in the volume mapped config folder and update contract types as applicable to the quantity and network access speeds for storing and retrieving data from your farming node. See https://storj.github.io/core/tutorial-contract-topics.html for more info on the types of contracts that can be provided. You will probably need to 'chown' this file if you run the next command with UID/GID values. This is useful if you don't want root to own the files created by the container.

  4. If your user account doesn't require sudo or root privileges to run Docker containers, you can lookup your UID and GID values with the following shell commands:

    • id -u <insert your username here>
    • id -g <insert your username here>
  5. Run: docker run -d --name="<container name>" --hostname="<container fqdn>" -v <config path>:/config -v <data path>:/data -v <log path>:/logs -v /etc/localtime:/etc/localtime:ro -e PUID="<primary user id>" -e PGID="<primary group id>" -p 4000-4005:4000-4005/tcp madcatsu/docker-storjshare-daemon:latest --create-user abc:<UID>:<PID>

  6. Profit!

Docker Pull Command
Owner
madcatsu

Comments (0)