From 4a08aac2cb11121dfe7bd90037cc82dc272b66df Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Fri, 8 Aug 2014 13:16:08 -0500 Subject: [PATCH] Updating version_added for docker net param and adding an example --- library/cloud/docker | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/library/cloud/docker b/library/cloud/docker index ecb319d2fd6..fb453b70a66 100644 --- a/library/cloud/docker +++ b/library/cloud/docker @@ -185,11 +185,11 @@ options: version_added: "1.6" net: description: - - Set Network mode for the container (bridge, none, container:, host) + - Set Network mode for the container (bridge, none, container:, host). Requires docker >= 0.11. required: false default: false aliases: [] - version_added: "1.11" + version_added: "1.8" author: Cove Schneider, Joshua Conner, Pavel Antonov requirements: [ "docker-py >= 0.3.0", "docker >= 0.10.0" ] ''' @@ -300,6 +300,14 @@ Create containers with options specified as strings and lists as comma-separated sudo: yes tasks: docker: image=namespace/image_name links=postgresql:db,redis:redis + +Create a container with no networking: + +- hosts: web + sudo: yes + tasks: + docker: image=namespace/image_name net=none + ''' HAS_DOCKER_PY = True