Got this issue, when run docker-compose up -d,
Creating harbor_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.
my docker is latest native docker for mac:
$ docker version
Client:
Version: 1.12.1
API version: 1.24
Go version: go1.7.1
Git commit: 6f9534c
Built: Thu Sep 15 11:20:26 2016
OS/Arch: darwin/amd64
Experimental: true
Server:
Version: 1.12.1
API version: 1.24
Go version: go1.6.3
Git commit: 23cf638
Built: Thu Aug 18 17:32:24 2016
OS/Arch: linux/amd64
Experimental: true
You can change the Deploy/docker-compose.yml just like this:
volumes:
#- /var/log/harbor/:/var/log/docker/
- ../dev/var/log/harbor/:/var/log/docker/
Thanks, @KaleoCheng.
Most helpful comment
You can change the Deploy/docker-compose.yml just like this: