Harbor: The path /var/log/harbor is not shared from OS X and is not known to Docker.

Created on 29 Sep 2016  ·  2Comments  ·  Source: goharbor/harbor

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

Most helpful comment

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/

All 2 comments

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.

Was this page helpful?
0 / 5 - 0 ratings