@@ -30,9 +30,9 @@ def container(
30
30
+ networks: network list to attach on container
31
31
+ ports: port list to expose
32
32
+ volumes: volume list to map on container
33
- + env_vars: environment varible list to inject on container
33
+ + env_vars: environment variable list to inject on container
34
34
+ pull_always: force image pull
35
- + force: remove a contaner with same name and create a new one
35
+ + force: remove a container with same name and create a new one
36
36
+ present: whether the container should be up and running
37
37
+ start: start or stop the container
38
38
@@ -125,7 +125,7 @@ def image(image, present=True):
125
125
Manage Docker images
126
126
127
127
+ image: Image and tag ex: nginx:alpine
128
- + present: whether the Docker image should be exist
128
+ + present: whether the Docker image should exist
129
129
130
130
**Examples:**
131
131
@@ -188,7 +188,7 @@ def volume(volume, driver="", labels=None, present=True):
188
188
if present :
189
189
190
190
if existent_volume :
191
- host .noop ("Volume alredy exist !" )
191
+ host .noop ("Volume already exists !" )
192
192
return
193
193
194
194
yield handle_docker (
@@ -261,7 +261,7 @@ def network(
261
261
262
262
if present :
263
263
if existent_network :
264
- host .noop ("Alredy exist a network with {0} name !" .format (network ))
264
+ host .noop ("Network {0} already exists !" .format (network ))
265
265
return
266
266
267
267
yield handle_docker (
@@ -284,7 +284,7 @@ def network(
284
284
285
285
else :
286
286
if existent_network is None :
287
- host .noop ("Ther is not network with {0} name !" .format (network ))
287
+ host .noop ("Network {0} does not exist !" .format (network ))
288
288
return
289
289
290
290
yield handle_docker (
0 commit comments