Puppet Defined Type: run
- Defined in:
- manifests/run.pp
Overview
Define: docker:run
A define which manages a running docker container.
Parameters
- restart
-
Sets a restart policy on the docker run. Note: If set, puppet will NOT setup an init script to manage, instead it will do a raw docker run command using a CID file to track the container ID.
If you want a normal named container with an init script and a restart policy you must use the extra_parameters feature and pass it in like this:
extra_parameters => ['--restart=always']
This will allow the docker container to be restarted if it dies, without puppet help.
- service_prefix
-
(optional) The name to prefix the startup script with and the Puppet service resource title with. Default: 'docker-'
- restart_service
-
(optional) Whether or not to restart the service if the the generated init script changes. Default: true
- restart_service_on_docker_refresh
-
Whether or not to restart the service if the docker service is restarted. Only has effect if the docker_service parameter is set. Default: true
- manage_service
-
(optional) Whether or not to create a puppet Service resource for the init script. Disabling this may be useful if integrating with existing modules. Default: true
- docker_service
-
(optional) If (and how) the Docker service itself is managed by Puppet true -> Service false -> no Service dependency anything else -> Service Default: false
- extra_parameters
-
An array of additional command line arguments to pass to the `docker run` command. Useful for adding additional new or experimental options that the module does not yet support.