From 63fde92b6013a95257faa6d675236f287467ed5a Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Thu, 30 Aug 2018 02:53:26 +0200 Subject: [PATCH] Improve description of default network removal. (#44861) --- lib/ansible/modules/cloud/docker/docker_container.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/ansible/modules/cloud/docker/docker_container.py b/lib/ansible/modules/cloud/docker/docker_container.py index b7e63d0fc9..f2c7fe3fe2 100644 --- a/lib/ansible/modules/cloud/docker/docker_container.py +++ b/lib/ansible/modules/cloud/docker/docker_container.py @@ -239,6 +239,9 @@ options: - If included, C(links) or C(aliases) are lists. - For examples of the data structure and usage see EXAMPLES below. - To remove a container from one or more networks, use the C(purge_networks) option. + - Note that as opposed to C(docker run ...), M(docker_container) does not remove the default + network if C(networks) is specified. You need to explicity use C(purge_networks) to enforce + the removal of the default network (and all other networks not explicitly mentioned in C(networks)). version_added: "2.2" oom_killer: description: