mirror of
https://github.com/docker/cli.git
synced 2026-01-18 08:21:31 +03:00
These settings need to be in the HostConfig so that they are not committed to an image and cannot introduce a security issue. We can safely move this field from the Config to the HostConfig without any regressions because these settings are consumed at container created and used to populate fields on the Container struct. Because of this, existing settings will be honored for containers already created on a daemon with custom security settings and prevent values being consumed via an Image. Signed-off-by: Michael Crosby <crosbymichael@gmail.com> Upstream-commit: c9379eb3fbbc484c056f5a5e49d8d0b755a29c45 Component: engine