mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-09-12 19:07:24 +00:00
Add support for cgroupns_mode parameter. (#427)
This commit is contained in:
@@ -21,6 +21,7 @@ from ansible_collections.community.docker.plugins.module_utils.module_container.
|
||||
OPTION_BLKIO_WEIGHT,
|
||||
OPTION_CAPABILITIES,
|
||||
OPTION_CAP_DROP,
|
||||
OPTION_CGROUP_NS_MODE,
|
||||
OPTION_CGROUP_PARENT,
|
||||
OPTION_COMMAND,
|
||||
OPTION_CPU_PERIOD,
|
||||
@@ -1175,6 +1176,8 @@ OPTION_CAPABILITIES.add_engine('docker_api', DockerAPIEngine.host_config_value('
|
||||
|
||||
OPTION_CAP_DROP.add_engine('docker_api', DockerAPIEngine.host_config_value('CapDrop'))
|
||||
|
||||
OPTION_CGROUP_NS_MODE.add_engine('docker_api', DockerAPIEngine.host_config_value('CgroupnsMode', min_api_version='1.41'))
|
||||
|
||||
OPTION_CGROUP_PARENT.add_engine('docker_api', DockerAPIEngine.host_config_value('CgroupParent'))
|
||||
|
||||
OPTION_COMMAND.add_engine('docker_api', DockerAPIEngine.config_value('Cmd'))
|
||||
|
||||
Reference in New Issue
Block a user