mldb: Docker not working in macOS / OSX

Hi guys, I’ve been trying to get the MLDB running on my local using docker from quay.io/datacratic/mldb:latest

However, I’ve been facing with the following error:

Aborting boot: directory mapped to /mldb_data owned by root

FYI, I’ve created a new user called mldb (non-root) and change command to id mldb to use the non-root user, however it still returns the same error.

Any help would be appreciated.

OS: macOS 10.12.1 Docker: 1.12.3-beta30

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 18 (9 by maintainers)

Most upvoted comments

You can use this workaround in the meantime.

docker run  --entrypoint="chown" --rm=true -v ~/mldb_data:/mldb_data quay.io/datacratic/mldb:latest   -R _mldb: /mldb_data

This will change the ~/mldb_data owner to the one Docker is expecting. Once you’ve run the command you can start MLDB normally.

For the shared folder it says that the folder I added is overlapped with Users folder - perhaps it is already shared.

My output as below:

$ ls -lan ~/mldb_data
total 0
drwxr-xr-x    3 503  20   102 Jan 18 10:28 .
drwxr-xr-x+ 151 502  20  5134 Jan 18 10:23 ..
-rw-r--r--    1 503  20     0 Jan 18 10:28 123

$ docker run --rm=true -v ~/mldb_data:/mldb_data -e MLDB_IDS="`id mldb`"   -p 127.0.0.1:5555:80 quay.io/datacratic/mldb:latest  ls -la /mldb_data
total 4
drwxr-xr-x  3 0 0  102 Jan 18 02:28 .
drwxr-xr-x 58 0 0 4096 Jan 18 02:28 ..
-rw-r--r--  1 0 0    0 Jan 18 02:28 123

The mldb_data is owned by 503 and not root, not sure why it says that its owned by root.