Repository navigation
Closed
docker-library/docs
#470Description
Hi all,
I try to run mongo with docker on my mac :
docker run --name mongo -p 27017:27017 -v ~/docker_data/mongodb:/data/db -d mongo --storageEngine wiredTiger
But I have this error on my log :
2015-11-28T15:05:05.734+0000 E STORAGE [initandlisten] WiredTiger (1) [1448723105:733979][1:0x7f57d29c2b60], connection: /data/db/WiredTiger.wt: Operation not permitted
2015-11-28T15:05:05.735+0000 I - [initandlisten] Assertion: 28595:1: Operation not permitted
2015-11-28T15:05:05.745+0000 I STORAGE [initandlisten] exception in initAndListen: 28595 1: Operation not permitted, terminating
2015-11-28T15:05:05.745+0000 I CONTROL [initandlisten] dbexit: rc: 100
2015-11-28T15:06:54.053+0000 I STORAGE [initandlisten] exception in initAndListen: 98 Unable to create/open lock file: /data/db/mongod.lock errno:13 Permission denied Is a mongod instance already running?, terminating
2015-11-28T15:06:54.053+0000 I CONTROL [initandlisten] dbexit: rc: 100
2015-11-28T15:12:07.653+0000 I STORAGE [initandlisten] exception in initAndListen std::exception: boost::filesystem::status: Permission denied: "/data/db/storage.bson", terminating
2015-11-28T15:12:07.654+0000 I CONTROL [initandlisten] dbexit: rc: 100
chown: cannot access `/data/db/journal': Protocol error
chown: changing ownership of `/data/db/mongod.lock': Protocol error
chown: changing ownership of `/data/db/WiredTiger': Protocol error
chown: changing ownership of `/data/db/WiredTiger.lock': Protocol error
chown: changing ownership of `/data/db/WiredTiger.wt': Protocol error
2015-11-28T15:13:39.141+0000 I STORAGE [initandlisten] exception in initAndListen std::exception: boost::filesystem::status: Permission denied: "/data/db/storage.bson", terminating
2015-11-28T15:13:39.141+0000 I CONTROL [initandlisten] dbexit: rc: 100
How can I run it and save content on my folder. ?
Metadata
Metadata
Assignees
Labels
No labels
Activity
jfexyz commentedon Dec 17, 2015
The host machine volume directory cannot be under /Users (or
~). Try:docker run --name mongo -p 27017:27017 -v /var/docker/data/mongodb:/data/db -d mongo --storageEngine wiredTigerThis really should be in the docs...
yosifkit commentedon Dec 18, 2015
I can't find anything in the Docker docs. I would rather not explain the same issue on every official image when it really is a docker-machine/boot2docker with OS X issue. There is an issue on boot2docker/boot2docker#581 and a good stackoverflow post.
cyrilchapon commentedon Apr 19, 2016
Verified on windows...