Hi Guys, I’m new on the docker/container enviroment, and i’m having an issue with mongo container.
My actual distro is a DeepinOS 15.11
Docker version: Docker version 19.03.5
Running the following command:
docker container run --name mongodb -p 27017:27017 mongo
, it logs me:
2019-12-17T15:57:24.749+0000 I CONTROL [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols ‘none’
2019-12-17T15:57:24.751+0000 I CONTROL [initandlisten] MongoDB starting : pid=1 port=27017 dbpath=/data/db 64-bit host=79d667588a40
2019-12-17T15:57:24.751+0000 I CONTROL [initandlisten] db version v4.2.2
2019-12-17T15:57:24.751+0000 I CONTROL [initandlisten] git version: a0bbbff6ada159e19298d37946ac8dc4b497eadf
2019-12-17T15:57:24.751+0000 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.1.1 11 Sep 2018
2019-12-17T15:57:24.751+0000 I CONTROL [initandlisten] allocator: tcmalloc
2019-12-17T15:57:24.751+0000 I CONTROL [initandlisten] modules: none
2019-12-17T15:57:24.751+0000 I CONTROL [initandlisten] build environment:
2019-12-17T15:57:24.751+0000 I CONTROL [initandlisten] distmod: ubuntu1804
2019-12-17T15:57:24.751+0000 I CONTROL [initandlisten] distarch: x86_64
2019-12-17T15:57:24.751+0000 I CONTROL [initandlisten] target_arch: x86_64
2019-12-17T15:57:24.751+0000 I CONTROL [initandlisten] options: { net: { bindIp: “*” } }
2019-12-17T15:57:24.751+0000 I STORAGE [initandlisten] exception in initAndListen std::exception: open: Permission denied, terminating
2019-12-17T15:57:24.751+0000 I CONTROL [initandlisten] now exiting
2019-12-17T15:57:24.751+0000 I CONTROL [initandlisten] shutting down with code:100
Does anyone know what could be causing this issue?