Docker Community Forums

Share and learn in the Docker community.

XXX is not shared from OS X and is not known to Docker

Expected behavior

docker-compose up -d
start containers properly

Actual behavior

$ github/vmware/harbor/Deploy (master)

$ docker-compose up -d
WARNING: The Docker Engine you’re using is running in swarm mode.

Compose does not use swarm mode to deploy services to multiple nodes in a swarm. All containers will be scheduled on the current node.

To deploy your application across the swarm, use the bundle feature of the Docker experimental build.

More info:

Starting deploy_log_1

ERROR: for log Cannot start service log: Mounts denied:
The path /var/log/harbor
is not shared from OS X and is not known to Docker.
You can configure shared paths from Docker -> Preferences… -> File Sharing.
See https://docs.docker.com/docker-for-mac/osxfs/#namespaces for more info.
.
ERROR: Encountered errors while bringing up the project.
$ github/vmware/harbor/Deploy (master)

Information

try to share /var/log/harbor in docker “File sharing”, but in Mac, /var is linked to private/var

$ ls -ld /var
lrwxr-xr-x@ 1 root  wheel  11  3 May 12:44 /var -> private/var

When I try to apply & Restart, give me the error

The export path /private/var/log overlaps with the export path /private.

So in fact, /private has been shared.

Steps to reproduce the behavior

  1. git clone https://github.com/vmware/harbor.git vmware/harbor
  2. cd vmware/harbor/Deploy
  3. docker-compose up -d

I am having the same issue. Were you able to resolve this?

This was fixed in Beta 33 and has been recently improved in Beta 35 or 36 so that exported directory paths are editable and now manually enterable by editing a blank entry at the end of the list.

Thanks for your patience with this issue and for using Docker for Mac. This improvement should reach the stable channel in a week or two.