I have never managed the readonly container to work.
/var/run needs to be writable. /tmp needs to be writable and so on. I gave it a shot again today:
$ docker run --read-only=true -ti ubuntu:14.10 touch /tmp/foo
touch: cannot touch '/tmp/foo': Read-only file system
How is this supposed to work? There is little to no information on how this feature works. Can you give me a pointer?
In addition, restart:on-failure appears to have issues if docker itself crashes.