by general_failure · 11y ago · 0 comments
/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.
E.g.:
mount -t tmpfs -o size=256M tmpfs /tmp
(I'm not sure if/how you can make Docker do this automatically. I'd imagine there's a flag or something.)