Can't Deploy Minio Docker container with --console-address

I have a very simple dockerfile for Minio

FROM minio/minio

CMD server /data --console-address ":9001"

This command works locally on my computer, but doesn’t seem to work in Render

I’ve been getting this error message in logs

‘/bin/sh’ is not a minio sub-command. See ‘minio --help’.

I’m going to guess that this is because of the way that render runs Docker containers internally

Any ideas how to get around this?

P.S. I’ve also tried the command like this without any luck

FROM minio/minio

CMD ["server", "/data", "--console-address", "':9001'"]

(notice the inner quotes in the port number argument)

Hello,

I believe that this might be an issue caused by your docker entrypoint. Could you try copying this code, similar to our minio example?

Add a file, entrypoint.sh:

#!/usr/bin/env sh
# wrapper for docker entrypoint

exec docker-entrypoint.sh server --console-address ":9001" /data

And update your Dockerfile to:

FROM minio/minio

COPY entrypoint.sh /opt/render/entrypoint.sh

ENTRYPOINT ["/opt/render/entrypoint.sh"]

Hopefully that helps!