Docker Community Forums

Share and learn in the Docker community.

I should be able to enter directly the directory path in the File Sharing preference


(Knyc) #1

Expected behaviour

Able to directly enter the path in the options. i.e “/var/lib/rancher”

Actual behaviour

Have to browse using finder and when navigate to “/var/lib/” it redirects to “/private/var/lib” because /var is a alias.

Information

Docker for Mac: version: mac-v1.12.0-beta18-3-gec40b14
OS X: version 10.11.5 (build: 15F34)
logs: /tmp/20160709-113751.tar.gz
[OK] docker-cli
[OK] app
[OK] menubar
[OK] virtualization
[OK] system
[OK] osxfs
[OK] db
[OK] slirp
[OK] moby-console
[OK] logs
[OK] vmnetd
[OK] env
[OK] moby
[OK] driver.amd64-linux

Steps to reproduce the behavior

  1. Trying to install rancher-agent

Kens-rMBP-15:logos ken$ docker run -d --privileged -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/rancher:/var/lib/rancher rancher/agent:v1.0.1 http://192.168.1.189:9999/v1/scripts/20E07ACA334D2DEFE189:1468033200000:5V5vSHv6NCZ5dic0XsxGBI56Om0
Unable to find image ‘rancher/agent:v1.0.1’ locally
v1.0.1: Pulling from rancher/agent
5a132a7e7af1: Downloading [=============================================> ] 59.46 MB/65.69 MB
fd2731e4c50c: Download complete
28a2f68d1120: Download complete
a3ed95caeb02: Download complete
91d0cd4547c7: Downloading [=============================> ] 49.19 MB/83.51 MB
664cee9fec33: Download complete
371d94bd3bdf: Download complete
5a132a7e7af1: Pull complete
fd2731e4c50c: Pull complete
28a2f68d1120: Pull complete
a3ed95caeb02: Pull complete
91d0cd4547c7: Pull complete
664cee9fec33: Pull complete
371d94bd3bdf: Pull complete
Digest: sha256:5e36516395f18aa666739104c7eceac6228d2ea44b8d75a343c52904fb297567
Status: Downloaded newer image for rancher/agent:v1.0.1
481ab0e0e204cd6e0879ac502baf86496e42fbffc48f1f2b995212a5eb4e1343
docker: Error response from daemon: Mounts denied:
The path /var/lib/rancher
is not shared from OS X and does not belong to the system.
You can configure shared paths from Docker -> Preferences…

trying to add /var/lib to the file sharing, i get a conflict with the /private that’s already there.


(Ghendrey) #2

same problem when I try to run kubernetes per these instructions: http://kubernetes.io/docs/getting-started-guides/docker/