Skip to content

OS X issue  #68

Closed
docker-library/docs
#470

Description

@solisoft

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. ?

Activity

  1. jfexyz commented on Dec 17, 2015

    @jfexyz
    Contributor

    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 wiredTiger

    This really should be in the docs...

  2. yosifkit commented on Dec 18, 2015

    @yosifkit
    Member

    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.

  3. cyrilchapon commented on Apr 19, 2016

    @cyrilchapon

    Verified on windows...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions