Closed sethforprivacy closed 2 years ago
The CMD entry should set sane defaults that are overridden by the user as desired, but unfortunately neither method works ATM, making a pre-packaged image practically useless at the moment.
I'll keep investigating this.
Nevermind, I found the solution and PR'd:
https://github.com/moneroexamples/onion-monero-blockchain-explorer/pull/254
Currently, the image is not able to accept any CMD entry or any command line flags passed with the
docker run
command or passed via thecommand:
entry in Docker Compose yaml files.The only way to pass flags is to include them in the Dockerfile
ENTRYPOINT
layer, like so:If you attempt to pass via CMD layer, the image fails to start, like so:
And when passing flags via
docker run
, the flags are simply ignored:Honestly I'm not sure how to resolve this, as every other executable I've containerized properly handles CMD, like monerod and p2pool: