Files
docker-cli/components/engine/daemon
Kir Kolyshkin 15e5af3a07 Fix user mount /dev/shm size
Commit 7120976d74195 ("Implement none, private, and shareable ipc
modes") introduces a bug: if a user-specified mount for /dev/shm
is provided, its size is overriden by value of ShmSize.

A reproducer is simple:

 docker run --rm
	--mount type=tmpfs,dst=/dev/shm,tmpfs-size=100K \
	alpine df /dev/shm

This commit is an attempt to fix the bug, as well as optimize things
a but and make the code easier to read.

https://github.com/moby/moby/issues/35271

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
(cherry picked from commit 31d30a985d99a0eef92116a22159727f5c332784)
2017-11-17 19:23:22 -08:00
..
2017-08-24 15:08:31 -04:00
2017-07-31 13:16:46 -07:00
2017-08-24 15:08:31 -04:00
2017-09-19 11:00:53 +02:00
2017-08-18 14:23:44 -04:00
2017-07-31 13:16:46 -07:00
2017-07-31 13:16:46 -07:00
2017-05-18 10:57:10 +08:00
2017-05-16 14:25:32 -07:00
2017-07-31 13:16:46 -07:00
2017-08-17 15:29:17 -07:00
2017-07-31 13:16:46 -07:00
2017-08-17 15:29:17 -07:00
2017-07-31 13:16:46 -07:00
2017-07-13 12:35:00 -07:00
2017-08-21 18:18:50 -04:00
2017-07-31 13:16:46 -07:00
2017-07-31 13:16:46 -07:00
2017-08-24 15:08:26 -04:00
2017-08-08 12:54:06 -07:00
2017-07-31 13:16:46 -07:00
2017-08-21 18:18:50 -04:00
2017-08-18 17:09:27 -07:00
2017-08-18 17:09:27 -07:00
2017-08-18 17:09:27 -07:00
2017-08-18 17:09:27 -07:00
2017-08-18 17:09:27 -07:00
2017-08-18 17:09:27 -07:00
2017-08-18 17:09:27 -07:00
2017-08-18 17:09:27 -07:00
2017-08-18 17:09:27 -07:00
2017-07-31 13:16:46 -07:00
2017-08-24 15:08:31 -04:00
2017-07-18 12:09:26 +08:00
2017-07-31 13:16:46 -07:00
2017-08-21 18:18:50 -04:00
2017-08-18 14:23:44 -04:00
2017-08-18 14:23:44 -04:00
2017-11-17 19:23:22 -08:00
2017-08-18 17:09:27 -07:00
2017-07-31 13:16:46 -07:00
2017-07-31 13:16:46 -07:00
2017-05-16 11:30:06 -07:00
2017-07-31 13:16:46 -07:00
2017-08-18 14:23:44 -04:00
2017-08-18 14:23:44 -04:00
2017-07-03 13:13:09 -07:00
2017-05-16 15:11:39 -07:00
2017-06-07 11:45:33 -04:00