It was noted[1] that container's HostConfig.ShmSize, if not set, should be initialized to daemon default value during container creation. In fact, it is already done in daemon.adaptContainerSettings, so we can use value from container.HostConfig directly. [1] https://github.com/moby/moby/pull/34087#discussion_r128656429 Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com> Upstream-commit: 0fb1fb1ce0177cf31dd96e9fdb4a5f55155a5966 Component: engine