Expected behavior
When running with multiple volume mounts, some read only, and some read-write, the inner most is mounted first, like they are on Linux
docker run -v bar:/a/b:rw -v baz:/a:ro ubuntu:14.04.4
Actual behavior
docker: Error response from daemon: rpc error: code = 2 desc = "oci runtime error: could not synchronise with container process: mkdir /var/lib/docker/aufs/mnt/3efc0d785b155dd727bd91be48976d1c5dc6796875c6760b25173939a2271368/a/b: read-only file system".
Information
$ pinata diagnose -u
OS X: version 10.11.6 (build: 15G12a)
Docker.app: version: v1.11.1-beta14.5.m
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/20160610-102827.tar.gz
Most specific failure is: No error was detected
Your unique id is: 7CFE656C-0DB7-4AD1-B22D-6843D04F7C6C
Steps to reproduce the behavior
mkdir {baz,bar}
docker run -v bar:/a/b:rw -v baz:/a:ro ubuntu:14.04.4