Software Updates

Ensure your storage node is getting pieces by keeping your software up to date.

Automatic Updates

You can set up automatic updates for your storagenode Docker container using watchtower. Watchtower will look for new updates to the Docker container on Docker Hub every 6 hours and automatically update your storage node when it sees a new version.

To set up auto-update for storagenode, please run the following command once:

docker run -d --restart=always --name watchtower -v /var/run/docker.sock:/var/run/docker.sock storjlabs/watchtower storagenode watchtower --stop-timeout 300s --interval 21600

Manual Updates

1. Stop the running Storage Node container:

docker stop -t 300 storagenode

2. Remove the existing container:

docker rm storagenode

3. Pull the latest image from docker:

docker pull storjlabs/storagenode:beta

4. Start your storage node again by running the following command after editing WALLET, EMAIL, ADDRESS, BANDWIDTH, STORAGE, <identity-dir>, and <storage-dir>:

Previous versions of thedocker run storagenodecommand that used the -v rather than the --mount option will not work properly. Copy the updated command below.

Windows
Non-ARM and ARM-based platforms
docker run -d --restart unless-stopped -p 28967:28967 -p 127.0.0.1:14002:14002 -e WALLET="0xXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" -e EMAIL="user@example.com" -e ADDRESS="domain.ddns.net:28967" -e BANDWIDTH="20TB" -e STORAGE="2TB" --mount type=bind,source="<identity-dir>",destination=/app/identity --mount type=bind,source="<storage-dir>",destination=/app/config --name storagenode storjlabs/storagenode:beta
docker run -d --restart unless-stopped -p 28967:28967 \
-e WALLET="0xXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" \
-e EMAIL="user@example.com" \
-e ADDRESS="domain.ddns.net:28967" \
-e BANDWIDTH="20TB" \
-e STORAGE="2TB" \
--mount type=bind,source="<identity-dir>",destination=/app/identity \
--mount type=bind,source="<storage-dir>",destination=/app/config \
--name storagenode storjlabs/storagenode:beta