Hello
I have just managed to run 3rd node. This time it is Raspberry Pi using Docker. I don’t have much experience with docker so sorry for stupid questions .
I started with following command (please note -p 14003:14003 instead of 127.0.0.1:14003:14003. I am also using 28963 port as 28961 and 28962 are for 1st and 2nd node): docker run -d --restart unless-stopped --stop-timeout 300 -p 28963:28967 -p 14003:14003 -e WALLET="xxx" -e EMAIL="xxx" -e ADDRESS="xxx:28963" -e STORAGE="xxx" --mount type=bind,source=/home/pi/identity,destination=/app/identity --mount type=bind,source=/mnt/sda1/storj,destination=/app/config --name storagenode storjlabs/storagenode:latest
I am sure node is running: $ docker exec -it storagenode /app/dashboard.sh
Storage Node Dashboard ( Node Version: v1.18.1 )
======================
ID 121Fqa9YvgWtja2jTDW3MzcNSLokkfApeu7SGE4TqgtKRaiqava
Status ONLINE
Uptime 29m54s
Available Used Egress Ingress
Bandwidth N/A 38.99 MB 0 B 38.99 MB (since Dec 1)
Disk 499.96 GB 38.63 MB
Internal 127.0.0.1:7778
External xxx:28963
There are no errors when I run docker logs storagenode
But I cannot access dashboard:
pi@raspberrypi:~ $ curl 127.0.0.1:14003
curl: (56) Recv failure: Connection reset by peer
pi@raspberrypi:~ $ curl 192.168.1.4:14003
curl: (7) Failed to connect to 192.168.1.4 port 14003: Connection refused
pi@raspberrypi:~ $ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
8d529cb435ff storjlabs/storagenode:latest "/entrypoint" 39 minutes ago Up 39 minutes 0.0.0.0:14003->14003/tcp, 0.0.0.0:28963->28967/tcp storagenode
You may use whichever port you want on your host (left hand-side of the redirection), but ports are fixed within the docker container (right hand-side of the redirection).
So it’ll always be 28967 for the Node service, and 14002 for the web dashboard, inside the container.
You did it the right way for the Node service port; so you need to do it in a similar way for the webdashboard: you need to redirect port 14003 (host) to port 14002 (docker).