Open thaJeztah opened 6 years ago
How come --shm-size
is affected here?
That option sets the size
for the default /dev/shm
mount; Also wondering if the "use a custom --mount type=tmpfs,target=/dev/shm...
approach should be the canonical way to do so.
This is a follow-up to https://github.com/moby/moby/pull/35467#issuecomment-345036525
The
--tmpfs
option addstmpfs
mounts to a container. This option is currently handled daemon-side, where mounts specified through--tmpfs
are merged with the default mounts, mounts from-v
/--volume
, and mounts specified through--mount
.We should change the CLI to use the Mount API
--tmpfs
becomes an "alias" for--mount type=tmpfs ....
Question
--shm-size
?/dev/shm
; how can we provide a custom--shm-size
, but keep other defaults as-is?ping @kolyshkin @cpuguy83 @AkihiroSuda PTAL