Updating version_added for docker net param and adding an example
This commit is contained in:
parent
a9b6d5a516
commit
aa0a904b2b
1 changed files with 10 additions and 2 deletions
12
cloud/docker
12
cloud/docker
|
@ -185,11 +185,11 @@ options:
|
||||||
version_added: "1.6"
|
version_added: "1.6"
|
||||||
net:
|
net:
|
||||||
description:
|
description:
|
||||||
- Set Network mode for the container (bridge, none, container:<name|id>, host)
|
- Set Network mode for the container (bridge, none, container:<name|id>, host). Requires docker >= 0.11.
|
||||||
required: false
|
required: false
|
||||||
default: false
|
default: false
|
||||||
aliases: []
|
aliases: []
|
||||||
version_added: "1.11"
|
version_added: "1.8"
|
||||||
author: Cove Schneider, Joshua Conner, Pavel Antonov
|
author: Cove Schneider, Joshua Conner, Pavel Antonov
|
||||||
requirements: [ "docker-py >= 0.3.0", "docker >= 0.10.0" ]
|
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
|
sudo: yes
|
||||||
tasks:
|
tasks:
|
||||||
docker: image=namespace/image_name links=postgresql:db,redis:redis
|
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
|
HAS_DOCKER_PY = True
|
||||||
|
|
Loading…
Add table
Reference in a new issue