Skip to content

Commit 9f45824

Browse files
Alexander Wellbrockdavejrt
Alexander Wellbrock
authored andcommitted
Add more supported params to run example (#146)
Some more of the supported params. Some are still missing where I don't know how they work.
1 parent feea190 commit 9f45824

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -277,11 +277,14 @@ This is equivalent to running the `docker run -d base /bin/sh -c "while true; d
277277
```puppet
278278
docker::run { 'helloworld':
279279
image => 'base',
280+
detach => true,
281+
service_prefix => 'docker-',
280282
command => '/bin/sh -c "while true; do echo hello world; sleep 1; done"',
281283
ports => ['4444', '4555'],
282284
expose => ['4666', '4777'],
283285
links => ['mysql:db'],
284286
net => 'my-user-def-net',
287+
disable_network => false,
285288
volumes => ['/var/lib/couchdb', '/var/log'],
286289
volumes_from => '6446ea52fbc9',
287290
memory_limit => '10m', # (format: '<number><unit>', where unit = b, k, m or g)
@@ -290,6 +293,7 @@ docker::run { 'helloworld':
290293
hostname => 'example.com',
291294
env => ['FOO=BAR', 'FOO2=BAR2'],
292295
env_file => ['/etc/foo', '/etc/bar'],
296+
labels => ['com.example.foo="true"', 'com.example.bar="false"'],
293297
dns => ['8.8.8.8', '8.8.4.4'],
294298
restart_service => true,
295299
privileged => false,
@@ -298,6 +302,7 @@ docker::run { 'helloworld':
298302
before_start => 'echo "Run this on the host before starting the Docker container"',
299303
after => [ 'container_b', 'mysql' ],
300304
depends => [ 'container_a', 'postgres' ],
305+
stop_wait_time => 0,
301306
extra_parameters => [ '--restart=always' ],
302307
}
303308
```

0 commit comments

Comments
 (0)