Libraries
»
puppetlabs-docker
(10.3.0)
»
Index (s)
»
Puppet Tasks
»
service_create
Puppet Task: service_create
Defined in:
tasks/service_create.json,
tasks/service_create.rb
Overview
Create a new Docker service
Supports noop?
false
Parameters
service
(String[1])
— The name of the service to create
image
(String[1])
— The new image to use for the service
replicas
(Integer)
— Number of replicas
expose
(Variant[String,Array,Undef])
— Publish service ports externally to the swarm
env
(Optional[Hash])
— Set environment variables
command
(Variant[String,Array,Undef])
— Command to run on the container
extra_params
(Optional[Array])
— Allows you to pass any other flag that the Docker service create supports.
detach
(Optional[Boolean])
— Exit immediately instead of waiting for the service to converge