Add multiple drives in Docker commands

If I’m being honest, setting up multinode is a pain and doesn’t work. I copied the command and it said it no longer wants an identity-dir flag, so I removed that mount, and then removed the other mount as well, but then it crashes saying it cannot create “/app/config” due to a permissions error.

Not sure what to do really. I want to run multiple nodes but if this doesn’t work then I’m not sure what to do.

It seems I was using an old-dockerfile somehow. Does anyone know of a new one?

you should post here what commands are you actually using.
no idea what you mean by docker file, are you using compose to deploy?

1 Like

And also, please skip the setup step for the second container, because it should be executed only for a new node, but not the old one, otherwise you can destroy it.

1 Like

Thank you for the information! I’ve found a link to a solution that looks good.

Just a quick question, when using watchtower, do I have to deploy it once for every storagenode, or can I deploy it once for all my storagenodes?

Thank you for all the help everyone! I have managed to get 2 nodes running, along with multinode, all using docker-compose!

The one watchtower instance is enough to update all containers, just list them in its argument.
For example

version: "3.3"
services:
  storagenode1:
    image: storjlabs/storagenode:latest
    container_name: storagenode1
...
  storagenode2:
    image: storjlabs/storagenode:latest
    container_name: storagenode2
...
  watchtower:
    image: storjlabs/watchtower
    restart: always
    container_name: watchtower
    command: "storagenode1 storagenode2 watchtower --stop-timeout 300s"
    volumes:
    - /var/run/docker.sock:/var/run/docker.sock
2 Likes