# Add multiple drives in Docker commands

**URL:** <https://forum.storj.io/t/add-multiple-drives-in-docker-commands/20788>\
**Category:** Node Operators\
**Tags:** docker, multiple-nodes\
**Created:** [December 24, 2022, 9:38pm UTC](https://forum.storj.io/t/add-multiple-drives-in-docker-commands/20788 "2022-12-24T21:38:01Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Milo123459](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/milo123459/32/7831_2.png) [@Milo123459](https://forum.storj.io/u/Milo123459)\
**Post date:** [December 24, 2022, 9:38pm UTC](https://forum.storj.io/t/add-multiple-drives-in-docker-commands/20788/1 "2022-12-24T21:38:01Z")

</div>

Hey! I have just started running a storage node and was wondering if anyone knew how to add multiple drives into a node via the docker commands. I presume it is just by adding another --mount but not sure how.

---

<div class="post-metadata">

**Author:** ![andrew2.hart](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/andrew2.hart/32/6415_2.png) [@andrew2.hart](https://forum.storj.io/u/andrew2.hart)\
**Post date:** [December 24, 2022, 10:13pm UTC](https://forum.storj.io/t/add-multiple-drives-in-docker-commands/20788/2 "2022-12-24T22:13:33Z")

</div>

The advise is to run 1 node per drive.

Otherwise,…there are raid, lvm, mergefs, zfs, etc which are not up to the node but the OS

---

<div class="post-metadata">

**Author:** ![Milo123459](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/milo123459/32/7831_2.png) [@Milo123459](https://forum.storj.io/u/Milo123459)\
**Post date:** [December 24, 2022, 11:04pm UTC](https://forum.storj.io/t/add-multiple-drives-in-docker-commands/20788/3 "2022-12-24T23:04:55Z")

</div>

What would you recommend for a Raspberry Pi? ZFS/MergeFS sound good.

---

<div class="post-metadata">

**Author:** ![andrew2.hart](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/andrew2.hart/32/6415_2.png) [@andrew2.hart](https://forum.storj.io/u/andrew2.hart)\
**Post date:** [December 24, 2022, 11:38pm UTC](https://forum.storj.io/t/add-multiple-drives-in-docker-commands/20788/4 "2022-12-24T23:38:49Z")

</div>

I did run up to 10 nodes on a pi4, single ip so no extra work for the pi4

Lvm worked ok but it doesn’t spread the io load very well. Not sure zfs is a good choice at all for the pis

---

<div class="post-metadata">

**Author:** ![Tomaae](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/tomaae/32/1135_2.png) [@Tomaae](https://forum.storj.io/u/Tomaae)\
**Post date:** [December 24, 2022, 11:40pm UTC](https://forum.storj.io/t/add-multiple-drives-in-docker-commands/20788/5 "2022-12-24T23:40:15Z")

</div>

certainly dont use ZFS on pi. lvm is standard linux solution. cant comment on mergefs

---

<div class="post-metadata">

**Author:** ![Milo123459](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/milo123459/32/7831_2.png) [@Milo123459](https://forum.storj.io/u/Milo123459)\
**Post date:** [December 24, 2022, 11:43pm UTC](https://forum.storj.io/t/add-multiple-drives-in-docker-commands/20788/6 "2022-12-24T23:43:24Z")

</div>

MergerFS looks good. Unlimited drives you can merge and looks simple.

---

<div class="post-metadata">

**Author:** ![andrew2.hart](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/andrew2.hart/32/6415_2.png) [@andrew2.hart](https://forum.storj.io/u/andrew2.hart)\
**Post date:** [December 24, 2022, 11:48pm UTC](https://forum.storj.io/t/add-multiple-drives-in-docker-commands/20788/7 "2022-12-24T23:48:31Z")

</div>

Why not have one node per disk? Do you only have one network port available?

---

<div class="post-metadata">

**Author:** ![Milo123459](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/milo123459/32/7831_2.png) [@Milo123459](https://forum.storj.io/u/Milo123459)\
**Post date:** [December 24, 2022, 11:49pm UTC](https://forum.storj.io/t/add-multiple-drives-in-docker-commands/20788/8 "2022-12-24T23:49:45Z")

</div>

Running multiple nodes seems un-needed - I like having one dashboard for everything.

---

<div class="post-metadata">

**Author:** ![Tomaae](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/tomaae/32/1135_2.png) [@Tomaae](https://forum.storj.io/u/Tomaae)\
**Post date:** [December 25, 2022, 1:22am UTC](https://forum.storj.io/t/add-multiple-drives-in-docker-commands/20788/9 "2022-12-25T01:22:48Z")

</div>

Well, if you lose one disk, you will lose everything. Using strip is always more dangerous.  
Also, you can have one dashboard for multiple nodes. Official multinode or unofficial of you want more detailed data.

---

<div class="post-metadata">

**Author:** ![Milo123459](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/milo123459/32/7831_2.png) [@Milo123459](https://forum.storj.io/u/Milo123459)\
**Post date:** [December 25, 2022, 2:33am UTC](https://forum.storj.io/t/add-multiple-drives-in-docker-commands/20788/10 "2022-12-25T02:33:53Z")

</div>

I never intended on being a big time node operator, just doing it for fun. What is multinode, and how can I run multiple nodes via the same IP/hostname?

---

<div class="post-metadata">

**Author:** ![Tomaae](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/tomaae/32/1135_2.png) [@Tomaae](https://forum.storj.io/u/Tomaae)\
**Post date:** [December 25, 2022, 3:29am UTC](https://forum.storj.io/t/add-multiple-drives-in-docker-commands/20788/11 "2022-12-25T03:29:13Z")

</div>

multinode is storj official way to monitor multiple nodes via one UI.  
running multiple nodes is easy, you just need to generate certificate for each and use different ports.  
you can look up my solution if you want, its here on this forum. I run 8 nodes that way on one server, just because its a way to utilize extra storage and unused disks I had around.

I’m far from big node operator myself, just started out of interest. Its already making more then power cost is for the server, which was my goal. Now its just to watch how far it can go.

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [December 25, 2022, 4:48am UTC](https://forum.storj.io/t/add-multiple-drives-in-docker-commands/20788/12 "2022-12-25T04:48:34Z")

</div>

You may take a look at [How to add an additional drive? - Storj Node Operator Docs](https://docs.storj.io/node/resources/faq/how-to-add-an-additional-drive)

For multinode dashboard (it will not create nodes for you, but you can add all your existing nodes to there, even if they running in different locations): [[Tech Preview] Multinode Dashboard Binaries](https://forum.storj.io/t/tech-preview-multinode-dashboard-binaries/14572)  
And you may be interested in: [Multinode Dashboard Docker image](https://forum.storj.io/t/multinode-dashboard-docker-image/15247)

---

<div class="post-metadata">

**Author:** ![Milo123459](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/milo123459/32/7831_2.png) [@Milo123459](https://forum.storj.io/u/Milo123459)\
**Post date:** [December 25, 2022, 11:13am UTC](https://forum.storj.io/t/add-multiple-drives-in-docker-commands/20788/13 "2022-12-25T11:13:38Z")

</div>

Thank you for all the information. Do I need to make more noip hosts?

---

<div class="post-metadata">

**Author:** ![Milo123459](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/milo123459/32/7831_2.png) [@Milo123459](https://forum.storj.io/u/Milo123459)\
**Post date:** [December 25, 2022, 11:25am UTC](https://forum.storj.io/t/add-multiple-drives-in-docker-commands/20788/14 "2022-12-25T11:25:48Z")

</div>

Another question - because my node is running on Docker, how do I generate an API key?

---

<div class="post-metadata">

**Author:** ![Tomaae](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/tomaae/32/1135_2.png) [@Tomaae](https://forum.storj.io/u/Tomaae)\
**Post date:** [December 25, 2022, 12:14pm UTC](https://forum.storj.io/t/add-multiple-drives-in-docker-commands/20788/15 "2022-12-25T12:14:59Z")

</div>

just run shell in docker container

---

<div class="post-metadata">

**Author:** ![Milo123459](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/milo123459/32/7831_2.png) [@Milo123459](https://forum.storj.io/u/Milo123459)\
**Post date:** [December 25, 2022, 12:34pm UTC](https://forum.storj.io/t/add-multiple-drives-in-docker-commands/20788/16 "2022-12-25T12:34:45Z")

</div>

Via `docker exec`? Not sure if that would work because I don’t want to interrupt the node running.

---

<div class="post-metadata">

**Author:** ![Tomaae](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/tomaae/32/1135_2.png) [@Tomaae](https://forum.storj.io/u/Tomaae)\
**Post date:** [December 25, 2022, 12:44pm UTC](https://forum.storj.io/t/add-multiple-drives-in-docker-commands/20788/17 "2022-12-25T12:44:45Z")

</div>

it works just fine. you will not interupt anything by connecting to docker container.

---

<div class="post-metadata">

**Author:** ![Milo123459](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/milo123459/32/7831_2.png) [@Milo123459](https://forum.storj.io/u/Milo123459)\
**Post date:** [December 25, 2022, 2:04pm UTC](https://forum.storj.io/t/add-multiple-drives-in-docker-commands/20788/18 "2022-12-25T14:04:22Z")

</div>

Thank you. I’ll update this post with how it goes.

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [December 26, 2022, 4:33am UTC](https://forum.storj.io/t/add-multiple-drives-in-docker-commands/20788/19 "2022-12-26T04:33:32Z")

</div>

> [@Milo123459](#):
>
> Do I need to make more noip hosts?

no, the existing is fine. Just make sure it’s updating when your external IP changes.

---

<div class="post-metadata">

**Author:** ![Milo123459](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/milo123459/32/7831_2.png) [@Milo123459](https://forum.storj.io/u/Milo123459)\
**Post date:** [December 26, 2022, 10:04am UTC](https://forum.storj.io/t/add-multiple-drives-in-docker-commands/20788/20 "2022-12-26T10:04:34Z")

</div>

So when running multiple nodes, I create a new port forwarding rule on my router, and change the port for the Docker container to create the server.

[Next page](https://forum.storj.io/t/add-multiple-drives-in-docker-commands/20788.md?page=2)
