Software Updates

Automatic Updates

As of v1.52.2, the storagenode software will automatically update itself. We recommend that you install Watchtower in the event that the base image needs updating. Watchtower will look for new updates to the Docker container on Docker Hub in a random interval between 12 and 72 hours and automatically update your storage node when it sees a new version.

First, please pull the latest watchtower image from docker:

docker pull storjlabs/watchtower
docker pull storjlabs/watchtower

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
docker run -d --restart=always --name watchtower -v /var/run/docker.sock:/var/run/docker.sock storjlabs/watchtower storagenode watchtower --stop-timeout 300s

If you want to double check that watchtower is properly running, you can run the following command

docker ps -a
docker ps -a

You should see the “storjlabs/watchtower:latest” container with the uptime under the “status” column

Manual Updates

Please use manual updates only if the automatic update method was unsuccessful, or is unavailable for your node configuration.

  1. Stop the running Storage Node container:

    docker stop -t 300 storagenode
    docker stop -t 300 storagenode
  2. Remove the existing container:

    docker rm storagenode
    docker rm storagenode
  3. Pull the latest image from docker:

    docker pull storjlabs/storagenode:latest
    docker pull storjlabs/storagenode:latest
  4. Start your storage node again

    Previous versions of the command docker run storagenode that used the -v rather than the --mount option will not work properly. Copy the updated command from the Storage Node article.

    Be sure to finish editing WALLETEMAILADDRESSSTORAGE<identity-dir>, and <storage-dir>

    Run the storage node.

Previous
Storage Node