/var/folders/... isn't mounted properly

Expected behavior

current folder is mounted into the container

Actual behavior

docker can’t resolve the folder

Information

  • the output of:
    • pinata diagnose -u on OSX
OS X: version 10.11.4 (build: 15E65)
Docker.app: version v1.11.0-beta7
Running diagnostic tests:
[OK]      docker-cli
[OK]      Moby booted
[OK]      driver.amd64-linux
[OK]      vmnetd
[OK]      osxfs
[OK]      db
[OK]      slirp
[OK]      menubar
[OK]      environment
[OK]      Docker
[OK]      VT-x
Docker logs are being collected into /tmp/20160419-215419.tar.gz
Most specific failure is: No error was detected
Your unique id is: 3B6B5355-0765-4694-829F-4608C7D17341
Please quote this in all correspondence.

Steps to reproduce the behavior

cd /var/folders/kx/<...>
docker run -it --rm -v=`pwd`:/host:ro ubuntu bash

Workaround

docker run -it --rm -v=/private/pwd:/host:ro ubuntu bash

/private/ was added before the pwd

Yes, currently /var refers to files on the Linux VM, and you need to use /private.