You need to provide it as an command line option after the image name, i.e.
...
storjlabs/storagenode:latest \
--server.address=10.66.66.2:28967
Sorry to resurrect this thread, but I recently had to manually update my Storj node because watchtower wasn’t working for some reason. When I was starting my node back up again, I attempted to add the server address as a command line option like so:
docker run -d --restart always --stop-timeout 300 \
-p 28967:28967/tcp \
-p 28967:28967/udp \
-p 14002:14002 \
-e WALLET="[REDACTED]" \
-e EMAIL="[REDACTED]" \
-e ADDRESS="[REDACTED]" \
-e STORAGE="18TB" \
--log-opt max-size=50m \
--log-opt max-file=10 \
--mount type=bind,source=/mnt/storj/identity/storagenode,destination=/app/identity \
--mount type=bind,source=/mnt/storj/storagenode,destination=/app/config \
--name storagenode storjlabs/storagenode:latest \
--server.address=10.66.66.2:28967
Was this the correct way to add the server address as a command line option? I did not receive any errors from Docker when I ran this command, but the storagenode docker container began repeatedly restarting itself every 10 seconds again. When I removed the server address line and executed the docker run command again, the node began working, just with misconfigured QUIC.