Docker errors SETUP

Hello,

I have been reading through other forum messages trying to get past the Setting up the Storage Node step in the documentation. I keep receiving the Error:

Error: file or directory not found error: open identity/identity.cert: no such file or directory

  • I am running Ubuntu 20 Desktop on a Rasperry Pi 4 (8GB ram)

  • I have a 4TB usb powered drive mounted and tested.

Here is my identity directory:

My command I run in a terminal with sudo:

docker run --rm -e SETUP="true" storjlabs/storagenode:latest \
--mount type=bind,source="/media/WD4TB/Storj/identity",destination=/app/identity \
--mount type=bind,source="/media/WD4TB/Storj/data",destination=/app/config \
--name storagenode storjlabs/storagenode:latest

I tried with different directories, no double quotes…

Any idea what I am doing wrong?

Thanks!
Chris

docker run --rm -e SETUP="true" \
    --mount type=bind,source="<identity-dir>",destination=/app/identity \
    --mount type=bind,source="<storage-dir>",destination=/app/config \
    --name storagenode storjlabs/storagenode:latest

Hi. Thanks…

Yes, I tried that but receive the

"docker run" requires at least 1 argument.

See ‘docker run --help’.

Usage: docker run [OPTIONS] IMAGE [COMMAND] [ARG…]

Run a command in a new container
–mount: command not found
–mount: command not found
–name: command not found

My Docker version is Docker version 20.10.6, build 370c289

There are two dashes in front of the mount

docker run --rm -e SETUP="true" \
--mount type=bind,source="/media/WD4TB/Storj/identity",destination=/app/identity \
--mount type=bind,source="/media/WD4TB/Storj/data",destination=/app/config \
--name storagenode storjlabs/storagenode:latest

But wait a second … did you do a static mount?

Ok. Got it!

Turned out I was pasting the whole command at once and it failed. I pasted one line at a time and it worked. Thanks for pointing me in the right direction…

Chris

Hi peem,

Yes, I watched a video and did a fstab. Does it look like I do not have a static mount? I have rebooted the Pi several times and the drive is still there.

I am fairly new to Linux. Please let me know if I am doing something incorrect or there is a better way.

Thanks again,
Chris

If you connect a second drive, e.g. via USB, it will also be in the /media folder (automatically), but if you now consciously mounted it in /media, it’s also good