When I run the following command on a CentOS 7 machine as root:
$ docker run --name some-mongo -d mongo
I get the following error:
docker logs
chown: changing ownership of '/dev/stdout': Permission denied
chown: changing ownership of '/dev/stderr': Permission denied
I could not find any solution for this. Or why this is happening.
I also am having the same problem with Red Hat Enterprise Linux Server release 7.3 (Maipo).
I'm also seeing it.
I disabled SELinux and works here!
gustavofc's fix is working for me.
I used these directions to disable SELinux and the MongoDB containers starts for me.
This is a bizarre one. :disappointed:
https://github.com/docker-library/mongo/pull/151 should help!
I am having this same problem also, is this already in the latest mongo images? It seems that docker is still getting the image without this fix. Thanks.
The fix isn't on the Hub quite yet; see
https://github.com/docker-library/official-images/pull/2780.
Most helpful comment
I disabled SELinux and works here!