Running Dremio OSS with custom profiles file

When I try running Dremio OSS with a curstom profiles file using the AWS_CREDENTIAL_PROFILES_FILE variable of the AWS SDK, it appears not to be picked up.

For instance using:

docker run -it -v $HOME/.aws/credentials:/aws/credentials -e AWS_CREDENTIAL_PROFILES_FILE=/aws/credentials --entrypoint bash -p 9047:9047 dremio/dremio-oss:latest

The creation of the S3 datasource in “AWS Profile” mode fails:

Could not connect to S3 source. Check your S3 data source settings and credentials.

Thanks for any insight!