Files
docker-cli/components/engine/daemon
Yong Tang 0e099055bb Inconsistent --tmpfs behavior
This fix tries to address the issue raised in #22420. When
`--tmpfs` is specified with `/tmp`, the default value is
`rw,nosuid,nodev,noexec,relatime,size=65536k`. When `--tmpfs`
is specified with `/tmp:rw`, then the value changed to
`rw,nosuid,nodev,noexec,relatime`.

The reason for such an inconsistency is because docker tries
to add `size=65536k` option only when user provides no option.

This fix tries to address this issue by always pre-progating
`size=65536k` along with `rw,nosuid,nodev,noexec,relatime`.
If user provides a different value (e.g., `size=8192k`), it
will override the `size=65536k` anyway since the combined
options will be parsed and merged to remove any duplicates.

Additional test cases have been added to cover the changes
in this fix.

This fix fixes #22420.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Upstream-commit: 397a6fefadf9ac91a5c9de2447f4dea607296470
Component: engine
2016-05-26 19:28:18 -07:00
..
2016-05-24 21:43:45 -04:00
2016-05-06 16:08:53 -07:00
2016-05-19 20:41:37 +08:00
2016-03-28 12:24:01 -07:00
2016-05-19 20:41:37 +08:00
2016-02-03 10:43:01 -08:00
2016-04-15 12:48:01 +02:00
2016-05-25 13:49:10 +02:00
2016-05-12 17:45:53 -07:00
2016-05-26 19:28:18 -07:00
2016-04-27 11:36:47 +08:00
2016-04-12 20:30:34 -04:00