|
|
@ -139,6 +139,13 @@ options:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Repository path and tag used to create the container. If an image is not found or pull is true, the image
|
|
|
|
- Repository path and tag used to create the container. If an image is not found or pull is true, the image
|
|
|
|
will be pulled from the registry. If no tag is included, 'latest' will be used.
|
|
|
|
will be pulled from the registry. If no tag is included, 'latest' will be used.
|
|
|
|
|
|
|
|
init:
|
|
|
|
|
|
|
|
description:
|
|
|
|
|
|
|
|
- Run an init inside the container that forwards signals and reaps processes.
|
|
|
|
|
|
|
|
This option requires Docker API 1.25+.
|
|
|
|
|
|
|
|
type: bool
|
|
|
|
|
|
|
|
default: 'no'
|
|
|
|
|
|
|
|
version_added: "2.6"
|
|
|
|
interactive:
|
|
|
|
interactive:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Keep stdin open after a container is launched, even if not attached.
|
|
|
|
- Keep stdin open after a container is launched, even if not attached.
|
|
|
@ -653,6 +660,7 @@ class TaskParameters(DockerBaseClass):
|
|
|
|
self.hostname = None
|
|
|
|
self.hostname = None
|
|
|
|
self.ignore_image = None
|
|
|
|
self.ignore_image = None
|
|
|
|
self.image = None
|
|
|
|
self.image = None
|
|
|
|
|
|
|
|
self.init = None
|
|
|
|
self.interactive = None
|
|
|
|
self.interactive = None
|
|
|
|
self.ipc_mode = None
|
|
|
|
self.ipc_mode = None
|
|
|
|
self.keep_volumes = None
|
|
|
|
self.keep_volumes = None
|
|
|
@ -898,7 +906,8 @@ class TaskParameters(DockerBaseClass):
|
|
|
|
group_add='groups',
|
|
|
|
group_add='groups',
|
|
|
|
devices='devices',
|
|
|
|
devices='devices',
|
|
|
|
pid_mode='pid_mode',
|
|
|
|
pid_mode='pid_mode',
|
|
|
|
tmpfs='tmpfs'
|
|
|
|
tmpfs='tmpfs',
|
|
|
|
|
|
|
|
init='init'
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
if HAS_DOCKER_PY_2 or HAS_DOCKER_PY_3:
|
|
|
|
if HAS_DOCKER_PY_2 or HAS_DOCKER_PY_3:
|
|
|
@ -1999,6 +2008,7 @@ def main():
|
|
|
|
hostname=dict(type='str'),
|
|
|
|
hostname=dict(type='str'),
|
|
|
|
ignore_image=dict(type='bool', default=False),
|
|
|
|
ignore_image=dict(type='bool', default=False),
|
|
|
|
image=dict(type='str'),
|
|
|
|
image=dict(type='str'),
|
|
|
|
|
|
|
|
init=dict(type='bool', default=False),
|
|
|
|
interactive=dict(type='bool', default=False),
|
|
|
|
interactive=dict(type='bool', default=False),
|
|
|
|
ipc_mode=dict(type='str'),
|
|
|
|
ipc_mode=dict(type='str'),
|
|
|
|
keep_volumes=dict(type='bool', default=True),
|
|
|
|
keep_volumes=dict(type='bool', default=True),
|
|
|
|