I am trying to deploy a Mongodb docker container on Bluemix w/ data persistence but always getting the error when the system is trying to mount on the container "/data/db" on the host (Bluemix) volume and the container doesn't start. For the last 2 days, I have researched and tried multiple options, including one for Postgres on stackoverflow, but still getting the same error. Any help would be greatly appreciated.
Error: $ docker logs f450993a-4cc ;chown: changing ownership of '/data/db': Permission denied
docker-compose file:
docker-compose.yml
mongodb:
container_name: mymongo
image: registry.ng.bluemix.net/helpfull/mongo:3.2.10
volumes:
- mongodb:/data/db:rw
ports:
- "27017"