From b33c9dad40e129e8db54a806e0aa260801469a0f Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Mon, 3 Jun 2019 05:38:21 +0200 Subject: [PATCH] Improve docs w.r.t. networks_cli_compatible. (#56971) --- lib/ansible/modules/cloud/docker/docker_container.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/ansible/modules/cloud/docker/docker_container.py b/lib/ansible/modules/cloud/docker/docker_container.py index 9881c66af8..c22fb0fcf4 100644 --- a/lib/ansible/modules/cloud/docker/docker_container.py +++ b/lib/ansible/modules/cloud/docker/docker_container.py @@ -434,6 +434,10 @@ options: - "If I(networks_cli_compatible) is set to C(yes), this module will behave as C(docker run --network) and will I(not) add the default network if C(networks) is specified. If C(networks) is not specified, the default network will be attached." + - "Note that docker CLI also sets C(network_mode) to the name of the first network + added if C(--network) is specified. For more compatibility with docker CLI, you + explicitly have to set C(network_mode) to the name of the first network you're + adding." - Current value is C(no). A new default of C(yes) will be set in Ansible 2.12. type: bool version_added: "2.8"