docker.Service
Explore with Pulumi AI
Import
Example Assuming you created a service
as follows #!/bin/bash docker service create –name foo -p 8080:80 nginx prints th ID 4pcphbxkfn2rffhbhe6czytgi you provide the definition for the resource as follows terraform resource “docker_service” “foo” {
name = “foo”
task_spec {
container_spec {
image = “nginx”
}
}
endpoint_spec {
ports {
target_port
= “80”
published_port = “8080”
}
} } then the import command is as follows #!/bin/bash
$ pulumi import docker:index/service:Service foo 4pcphbxkfn2rffhbhe6czytgi
Create Service Resource
new Service(name: string, args: ServiceArgs, opts?: CustomResourceOptions);
@overload
def Service(resource_name: str,
opts: Optional[ResourceOptions] = None,
auth: Optional[ServiceAuthArgs] = None,
converge_config: Optional[ServiceConvergeConfigArgs] = None,
endpoint_spec: Optional[ServiceEndpointSpecArgs] = None,
labels: Optional[Sequence[ServiceLabelArgs]] = None,
mode: Optional[ServiceModeArgs] = None,
name: Optional[str] = None,
rollback_config: Optional[ServiceRollbackConfigArgs] = None,
task_spec: Optional[ServiceTaskSpecArgs] = None,
update_config: Optional[ServiceUpdateConfigArgs] = None)
@overload
def Service(resource_name: str,
args: ServiceArgs,
opts: Optional[ResourceOptions] = None)
func NewService(ctx *Context, name string, args ServiceArgs, opts ...ResourceOption) (*Service, error)
public Service(string name, ServiceArgs args, CustomResourceOptions? opts = null)
public Service(String name, ServiceArgs args)
public Service(String name, ServiceArgs args, CustomResourceOptions options)
type: docker:Service
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServiceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ServiceArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ServiceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServiceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ServiceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Service Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Service resource accepts the following input properties:
- Task
Spec ServiceTask Spec User modifiable task configuration
- Auth
Service
Auth Configuration for the authentication for pulling the images of the service
- Converge
Config ServiceConverge Config A configuration to ensure that a service converges aka reaches the desired that of all task up and running
- Endpoint
Spec ServiceEndpoint Spec Properties that can be configured to access and load balance a service
- Labels
List<Service
Label> User-defined key/value metadata
- Mode
Service
Mode Scheduling mode for the service
- Name string
Name of the service
- Rollback
Config ServiceRollback Config Specification for the rollback strategy of the service
- Update
Config ServiceUpdate Config Specification for the update strategy of the service
- Task
Spec ServiceTask Spec Args User modifiable task configuration
- Auth
Service
Auth Args Configuration for the authentication for pulling the images of the service
- Converge
Config ServiceConverge Config Args A configuration to ensure that a service converges aka reaches the desired that of all task up and running
- Endpoint
Spec ServiceEndpoint Spec Args Properties that can be configured to access and load balance a service
- Labels
[]Service
Label Args User-defined key/value metadata
- Mode
Service
Mode Args Scheduling mode for the service
- Name string
Name of the service
- Rollback
Config ServiceRollback Config Args Specification for the rollback strategy of the service
- Update
Config ServiceUpdate Config Args Specification for the update strategy of the service
- task
Spec ServiceTask Spec User modifiable task configuration
- auth
Service
Auth Configuration for the authentication for pulling the images of the service
- converge
Config ServiceConverge Config A configuration to ensure that a service converges aka reaches the desired that of all task up and running
- endpoint
Spec ServiceEndpoint Spec Properties that can be configured to access and load balance a service
- labels
List<Service
Label> User-defined key/value metadata
- mode
Service
Mode Scheduling mode for the service
- name String
Name of the service
- rollback
Config ServiceRollback Config Specification for the rollback strategy of the service
- update
Config ServiceUpdate Config Specification for the update strategy of the service
- task
Spec ServiceTask Spec User modifiable task configuration
- auth
Service
Auth Configuration for the authentication for pulling the images of the service
- converge
Config ServiceConverge Config A configuration to ensure that a service converges aka reaches the desired that of all task up and running
- endpoint
Spec ServiceEndpoint Spec Properties that can be configured to access and load balance a service
- labels
Service
Label[] User-defined key/value metadata
- mode
Service
Mode Scheduling mode for the service
- name string
Name of the service
- rollback
Config ServiceRollback Config Specification for the rollback strategy of the service
- update
Config ServiceUpdate Config Specification for the update strategy of the service
- task_
spec ServiceTask Spec Args User modifiable task configuration
- auth
Service
Auth Args Configuration for the authentication for pulling the images of the service
- converge_
config ServiceConverge Config Args A configuration to ensure that a service converges aka reaches the desired that of all task up and running
- endpoint_
spec ServiceEndpoint Spec Args Properties that can be configured to access and load balance a service
- labels
Sequence[Service
Label Args] User-defined key/value metadata
- mode
Service
Mode Args Scheduling mode for the service
- name str
Name of the service
- rollback_
config ServiceRollback Config Args Specification for the rollback strategy of the service
- update_
config ServiceUpdate Config Args Specification for the update strategy of the service
- task
Spec Property Map User modifiable task configuration
- auth Property Map
Configuration for the authentication for pulling the images of the service
- converge
Config Property Map A configuration to ensure that a service converges aka reaches the desired that of all task up and running
- endpoint
Spec Property Map Properties that can be configured to access and load balance a service
- labels List<Property Map>
User-defined key/value metadata
- mode Property Map
Scheduling mode for the service
- name String
Name of the service
- rollback
Config Property Map Specification for the rollback strategy of the service
- update
Config Property Map Specification for the update strategy of the service
Outputs
All input properties are implicitly available as output properties. Additionally, the Service resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Id string
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
- id string
The provider-assigned unique ID for this managed resource.
- id str
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
Look up Existing Service Resource
Get an existing Service resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ServiceState, opts?: CustomResourceOptions): Service
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
auth: Optional[ServiceAuthArgs] = None,
converge_config: Optional[ServiceConvergeConfigArgs] = None,
endpoint_spec: Optional[ServiceEndpointSpecArgs] = None,
labels: Optional[Sequence[ServiceLabelArgs]] = None,
mode: Optional[ServiceModeArgs] = None,
name: Optional[str] = None,
rollback_config: Optional[ServiceRollbackConfigArgs] = None,
task_spec: Optional[ServiceTaskSpecArgs] = None,
update_config: Optional[ServiceUpdateConfigArgs] = None) -> Service
func GetService(ctx *Context, name string, id IDInput, state *ServiceState, opts ...ResourceOption) (*Service, error)
public static Service Get(string name, Input<string> id, ServiceState? state, CustomResourceOptions? opts = null)
public static Service get(String name, Output<String> id, ServiceState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Auth
Service
Auth Configuration for the authentication for pulling the images of the service
- Converge
Config ServiceConverge Config A configuration to ensure that a service converges aka reaches the desired that of all task up and running
- Endpoint
Spec ServiceEndpoint Spec Properties that can be configured to access and load balance a service
- Labels
List<Service
Label> User-defined key/value metadata
- Mode
Service
Mode Scheduling mode for the service
- Name string
Name of the service
- Rollback
Config ServiceRollback Config Specification for the rollback strategy of the service
- Task
Spec ServiceTask Spec User modifiable task configuration
- Update
Config ServiceUpdate Config Specification for the update strategy of the service
- Auth
Service
Auth Args Configuration for the authentication for pulling the images of the service
- Converge
Config ServiceConverge Config Args A configuration to ensure that a service converges aka reaches the desired that of all task up and running
- Endpoint
Spec ServiceEndpoint Spec Args Properties that can be configured to access and load balance a service
- Labels
[]Service
Label Args User-defined key/value metadata
- Mode
Service
Mode Args Scheduling mode for the service
- Name string
Name of the service
- Rollback
Config ServiceRollback Config Args Specification for the rollback strategy of the service
- Task
Spec ServiceTask Spec Args User modifiable task configuration
- Update
Config ServiceUpdate Config Args Specification for the update strategy of the service
- auth
Service
Auth Configuration for the authentication for pulling the images of the service
- converge
Config ServiceConverge Config A configuration to ensure that a service converges aka reaches the desired that of all task up and running
- endpoint
Spec ServiceEndpoint Spec Properties that can be configured to access and load balance a service
- labels
List<Service
Label> User-defined key/value metadata
- mode
Service
Mode Scheduling mode for the service
- name String
Name of the service
- rollback
Config ServiceRollback Config Specification for the rollback strategy of the service
- task
Spec ServiceTask Spec User modifiable task configuration
- update
Config ServiceUpdate Config Specification for the update strategy of the service
- auth
Service
Auth Configuration for the authentication for pulling the images of the service
- converge
Config ServiceConverge Config A configuration to ensure that a service converges aka reaches the desired that of all task up and running
- endpoint
Spec ServiceEndpoint Spec Properties that can be configured to access and load balance a service
- labels
Service
Label[] User-defined key/value metadata
- mode
Service
Mode Scheduling mode for the service
- name string
Name of the service
- rollback
Config ServiceRollback Config Specification for the rollback strategy of the service
- task
Spec ServiceTask Spec User modifiable task configuration
- update
Config ServiceUpdate Config Specification for the update strategy of the service
- auth
Service
Auth Args Configuration for the authentication for pulling the images of the service
- converge_
config ServiceConverge Config Args A configuration to ensure that a service converges aka reaches the desired that of all task up and running
- endpoint_
spec ServiceEndpoint Spec Args Properties that can be configured to access and load balance a service
- labels
Sequence[Service
Label Args] User-defined key/value metadata
- mode
Service
Mode Args Scheduling mode for the service
- name str
Name of the service
- rollback_
config ServiceRollback Config Args Specification for the rollback strategy of the service
- task_
spec ServiceTask Spec Args User modifiable task configuration
- update_
config ServiceUpdate Config Args Specification for the update strategy of the service
- auth Property Map
Configuration for the authentication for pulling the images of the service
- converge
Config Property Map A configuration to ensure that a service converges aka reaches the desired that of all task up and running
- endpoint
Spec Property Map Properties that can be configured to access and load balance a service
- labels List<Property Map>
User-defined key/value metadata
- mode Property Map
Scheduling mode for the service
- name String
Name of the service
- rollback
Config Property Map Specification for the rollback strategy of the service
- task
Spec Property Map User modifiable task configuration
- update
Config Property Map Specification for the update strategy of the service
Supporting Types
ServiceAuth, ServiceAuthArgs
- Server
Address string The address of the server for the authentication
- Password string
The password
- Username string
The username
- Server
Address string The address of the server for the authentication
- Password string
The password
- Username string
The username
- server
Address String The address of the server for the authentication
- password String
The password
- username String
The username
- server
Address string The address of the server for the authentication
- password string
The password
- username string
The username
- server_
address str The address of the server for the authentication
- password str
The password
- username str
The username
- server
Address String The address of the server for the authentication
- password String
The password
- username String
The username
ServiceConvergeConfig, ServiceConvergeConfigArgs
ServiceEndpointSpec, ServiceEndpointSpecArgs
- Mode string
The mode of resolution to use for internal load balancing between tasks
- Ports
List<Service
Endpoint Spec Port> List of exposed ports that this service is accessible on from the outside. Ports can only be provided if 'vip' resolution mode is used
- Mode string
The mode of resolution to use for internal load balancing between tasks
- Ports
[]Service
Endpoint Spec Port List of exposed ports that this service is accessible on from the outside. Ports can only be provided if 'vip' resolution mode is used
- mode String
The mode of resolution to use for internal load balancing between tasks
- ports
List<Service
Endpoint Spec Port> List of exposed ports that this service is accessible on from the outside. Ports can only be provided if 'vip' resolution mode is used
- mode string
The mode of resolution to use for internal load balancing between tasks
- ports
Service
Endpoint Spec Port[] List of exposed ports that this service is accessible on from the outside. Ports can only be provided if 'vip' resolution mode is used
- mode str
The mode of resolution to use for internal load balancing between tasks
- ports
Sequence[Service
Endpoint Spec Port] List of exposed ports that this service is accessible on from the outside. Ports can only be provided if 'vip' resolution mode is used
- mode String
The mode of resolution to use for internal load balancing between tasks
- ports List<Property Map>
List of exposed ports that this service is accessible on from the outside. Ports can only be provided if 'vip' resolution mode is used
ServiceEndpointSpecPort, ServiceEndpointSpecPortArgs
- Target
Port int - Name string
Name of the service
- Protocol string
- Publish
Mode string - Published
Port int
- Target
Port int - Name string
Name of the service
- Protocol string
- Publish
Mode string - Published
Port int
- target
Port Integer - name String
Name of the service
- protocol String
- publish
Mode String - published
Port Integer
- target
Port number - name string
Name of the service
- protocol string
- publish
Mode string - published
Port number
- target_
port int - name str
Name of the service
- protocol str
- publish_
mode str - published_
port int
- target
Port Number - name String
Name of the service
- protocol String
- publish
Mode String - published
Port Number
ServiceLabel, ServiceLabelArgs
ServiceMode, ServiceModeArgs
- Global bool
The global service mode. Defaults to
false
- Replicated
Service
Mode Replicated The replicated service mode
- Global bool
The global service mode. Defaults to
false
- Replicated
Service
Mode Replicated The replicated service mode
- global Boolean
The global service mode. Defaults to
false
- replicated
Service
Mode Replicated The replicated service mode
- global boolean
The global service mode. Defaults to
false
- replicated
Service
Mode Replicated The replicated service mode
- global_ bool
The global service mode. Defaults to
false
- replicated
Service
Mode Replicated The replicated service mode
- global Boolean
The global service mode. Defaults to
false
- replicated Property Map
The replicated service mode
ServiceModeReplicated, ServiceModeReplicatedArgs
- Replicas int
- Replicas int
- replicas Integer
- replicas number
- replicas int
- replicas Number
ServiceRollbackConfig, ServiceRollbackConfigArgs
- Delay string
Delay between task rollbacks (ns|us|ms|s|m|h). Defaults to
0s
.- Failure
Action string Action on rollback failure: pause | continue. Defaults to
pause
.- Max
Failure stringRatio Failure rate to tolerate during a rollback. Defaults to
0.0
.- Monitor string
Duration after each task rollback to monitor for failure (ns|us|ms|s|m|h). Defaults to
5s
.- Order string
Rollback order: either 'stop-first' or 'start-first'. Defaults to
stop-first
.- Parallelism int
Maximum number of tasks to be rollbacked in one iteration. Defaults to
1
- Delay string
Delay between task rollbacks (ns|us|ms|s|m|h). Defaults to
0s
.- Failure
Action string Action on rollback failure: pause | continue. Defaults to
pause
.- Max
Failure stringRatio Failure rate to tolerate during a rollback. Defaults to
0.0
.- Monitor string
Duration after each task rollback to monitor for failure (ns|us|ms|s|m|h). Defaults to
5s
.- Order string
Rollback order: either 'stop-first' or 'start-first'. Defaults to
stop-first
.- Parallelism int
Maximum number of tasks to be rollbacked in one iteration. Defaults to
1
- delay String
Delay between task rollbacks (ns|us|ms|s|m|h). Defaults to
0s
.- failure
Action String Action on rollback failure: pause | continue. Defaults to
pause
.- max
Failure StringRatio Failure rate to tolerate during a rollback. Defaults to
0.0
.- monitor String
Duration after each task rollback to monitor for failure (ns|us|ms|s|m|h). Defaults to
5s
.- order String
Rollback order: either 'stop-first' or 'start-first'. Defaults to
stop-first
.- parallelism Integer
Maximum number of tasks to be rollbacked in one iteration. Defaults to
1
- delay string
Delay between task rollbacks (ns|us|ms|s|m|h). Defaults to
0s
.- failure
Action string Action on rollback failure: pause | continue. Defaults to
pause
.- max
Failure stringRatio Failure rate to tolerate during a rollback. Defaults to
0.0
.- monitor string
Duration after each task rollback to monitor for failure (ns|us|ms|s|m|h). Defaults to
5s
.- order string
Rollback order: either 'stop-first' or 'start-first'. Defaults to
stop-first
.- parallelism number
Maximum number of tasks to be rollbacked in one iteration. Defaults to
1
- delay str
Delay between task rollbacks (ns|us|ms|s|m|h). Defaults to
0s
.- failure_
action str Action on rollback failure: pause | continue. Defaults to
pause
.- max_
failure_ strratio Failure rate to tolerate during a rollback. Defaults to
0.0
.- monitor str
Duration after each task rollback to monitor for failure (ns|us|ms|s|m|h). Defaults to
5s
.- order str
Rollback order: either 'stop-first' or 'start-first'. Defaults to
stop-first
.- parallelism int
Maximum number of tasks to be rollbacked in one iteration. Defaults to
1
- delay String
Delay between task rollbacks (ns|us|ms|s|m|h). Defaults to
0s
.- failure
Action String Action on rollback failure: pause | continue. Defaults to
pause
.- max
Failure StringRatio Failure rate to tolerate during a rollback. Defaults to
0.0
.- monitor String
Duration after each task rollback to monitor for failure (ns|us|ms|s|m|h). Defaults to
5s
.- order String
Rollback order: either 'stop-first' or 'start-first'. Defaults to
stop-first
.- parallelism Number
Maximum number of tasks to be rollbacked in one iteration. Defaults to
1
ServiceTaskSpec, ServiceTaskSpecArgs
- Container
Spec ServiceTask Spec Container Spec The spec for each container
- Force
Update int A counter that triggers an update even if no relevant parameters have been changed. See the spec.
- Log
Driver ServiceTask Spec Log Driver Specifies the log driver to use for tasks created from this spec. If not present, the default one for the swarm will be used, finally falling back to the engine default if not specified
- Networks
Advanceds List<ServiceTask Spec Networks Advanced> The networks the container is attached to
- Placement
Service
Task Spec Placement The placement preferences
- Resources
Service
Task Spec Resources Resource requirements which apply to each individual container created as part of the service
- Restart
Policy ServiceTask Spec Restart Policy Specification for the restart policy which applies to containers created as part of this service.
- Runtime string
Runtime is the type of runtime specified for the task executor. See the types.
- Container
Spec ServiceTask Spec Container Spec The spec for each container
- Force
Update int A counter that triggers an update even if no relevant parameters have been changed. See the spec.
- Log
Driver ServiceTask Spec Log Driver Specifies the log driver to use for tasks created from this spec. If not present, the default one for the swarm will be used, finally falling back to the engine default if not specified
- Networks
Advanceds []ServiceTask Spec Networks Advanced The networks the container is attached to
- Placement
Service
Task Spec Placement The placement preferences
- Resources
Service
Task Spec Resources Resource requirements which apply to each individual container created as part of the service
- Restart
Policy ServiceTask Spec Restart Policy Specification for the restart policy which applies to containers created as part of this service.
- Runtime string
Runtime is the type of runtime specified for the task executor. See the types.
- container
Spec ServiceTask Spec Container Spec The spec for each container
- force
Update Integer A counter that triggers an update even if no relevant parameters have been changed. See the spec.
- log
Driver ServiceTask Spec Log Driver Specifies the log driver to use for tasks created from this spec. If not present, the default one for the swarm will be used, finally falling back to the engine default if not specified
- networks
Advanceds List<ServiceTask Spec Networks Advanced> The networks the container is attached to
- placement
Service
Task Spec Placement The placement preferences
- resources
Service
Task Spec Resources Resource requirements which apply to each individual container created as part of the service
- restart
Policy ServiceTask Spec Restart Policy Specification for the restart policy which applies to containers created as part of this service.
- runtime String
Runtime is the type of runtime specified for the task executor. See the types.
- container
Spec ServiceTask Spec Container Spec The spec for each container
- force
Update number A counter that triggers an update even if no relevant parameters have been changed. See the spec.
- log
Driver ServiceTask Spec Log Driver Specifies the log driver to use for tasks created from this spec. If not present, the default one for the swarm will be used, finally falling back to the engine default if not specified
- networks
Advanceds ServiceTask Spec Networks Advanced[] The networks the container is attached to
- placement
Service
Task Spec Placement The placement preferences
- resources
Service
Task Spec Resources Resource requirements which apply to each individual container created as part of the service
- restart
Policy ServiceTask Spec Restart Policy Specification for the restart policy which applies to containers created as part of this service.
- runtime string
Runtime is the type of runtime specified for the task executor. See the types.
- container_
spec ServiceTask Spec Container Spec The spec for each container
- force_
update int A counter that triggers an update even if no relevant parameters have been changed. See the spec.
- log_
driver ServiceTask Spec Log Driver Specifies the log driver to use for tasks created from this spec. If not present, the default one for the swarm will be used, finally falling back to the engine default if not specified
- networks_
advanceds Sequence[ServiceTask Spec Networks Advanced] The networks the container is attached to
- placement
Service
Task Spec Placement The placement preferences
- resources
Service
Task Spec Resources Resource requirements which apply to each individual container created as part of the service
- restart_
policy ServiceTask Spec Restart Policy Specification for the restart policy which applies to containers created as part of this service.
- runtime str
Runtime is the type of runtime specified for the task executor. See the types.
- container
Spec Property Map The spec for each container
- force
Update Number A counter that triggers an update even if no relevant parameters have been changed. See the spec.
- log
Driver Property Map Specifies the log driver to use for tasks created from this spec. If not present, the default one for the swarm will be used, finally falling back to the engine default if not specified
- networks
Advanceds List<Property Map> The networks the container is attached to
- placement Property Map
The placement preferences
- resources Property Map
Resource requirements which apply to each individual container created as part of the service
- restart
Policy Property Map Specification for the restart policy which applies to containers created as part of this service.
- runtime String
Runtime is the type of runtime specified for the task executor. See the types.
ServiceTaskSpecContainerSpec, ServiceTaskSpecContainerSpecArgs
- Image string
- Args List<string>
- Commands List<string>
- Configs
List<Service
Task Spec Container Spec Config> - Dir string
- Dns
Config ServiceTask Spec Container Spec Dns Config - Env Dictionary<string, string>
- Groups List<string>
- Healthcheck
Service
Task Spec Container Spec Healthcheck - Hostname string
- Hosts
List<Service
Task Spec Container Spec Host> - Isolation string
- Labels
List<Service
Task Spec Container Spec Label> User-defined key/value metadata
- Mounts
List<Service
Task Spec Container Spec Mount> - Privileges
Service
Task Spec Container Spec Privileges - Read
Only bool - Secrets
List<Service
Task Spec Container Spec Secret> - Stop
Grace stringPeriod - Stop
Signal string - Sysctl Dictionary<string, object>
- User string
- Image string
- Args []string
- Commands []string
- Configs
[]Service
Task Spec Container Spec Config - Dir string
- Dns
Config ServiceTask Spec Container Spec Dns Config - Env map[string]string
- Groups []string
- Healthcheck
Service
Task Spec Container Spec Healthcheck - Hostname string
- Hosts
[]Service
Task Spec Container Spec Host - Isolation string
- Labels
[]Service
Task Spec Container Spec Label User-defined key/value metadata
- Mounts
[]Service
Task Spec Container Spec Mount - Privileges
Service
Task Spec Container Spec Privileges - Read
Only bool - Secrets
[]Service
Task Spec Container Spec Secret - Stop
Grace stringPeriod - Stop
Signal string - Sysctl map[string]interface{}
- User string
- image String
- args List<String>
- commands List<String>
- configs
List<Service
Task Spec Container Spec Config> - dir String
- dns
Config ServiceTask Spec Container Spec Dns Config - env Map<String,String>
- groups List<String>
- healthcheck
Service
Task Spec Container Spec Healthcheck - hostname String
- hosts
List<Service
Task Spec Container Spec Host> - isolation String
- labels
List<Service
Task Spec Container Spec Label> User-defined key/value metadata
- mounts
List<Service
Task Spec Container Spec Mount> - privileges
Service
Task Spec Container Spec Privileges - read
Only Boolean - secrets
List<Service
Task Spec Container Spec Secret> - stop
Grace StringPeriod - stop
Signal String - sysctl Map<String,Object>
- user String
- image string
- args string[]
- commands string[]
- configs
Service
Task Spec Container Spec Config[] - dir string
- dns
Config ServiceTask Spec Container Spec Dns Config - env {[key: string]: string}
- groups string[]
- healthcheck
Service
Task Spec Container Spec Healthcheck - hostname string
- hosts
Service
Task Spec Container Spec Host[] - isolation string
- labels
Service
Task Spec Container Spec Label[] User-defined key/value metadata
- mounts
Service
Task Spec Container Spec Mount[] - privileges
Service
Task Spec Container Spec Privileges - read
Only boolean - secrets
Service
Task Spec Container Spec Secret[] - stop
Grace stringPeriod - stop
Signal string - sysctl {[key: string]: any}
- user string
- image str
- args Sequence[str]
- commands Sequence[str]
- configs
Sequence[Service
Task Spec Container Spec Config] - dir str
- dns_
config ServiceTask Spec Container Spec Dns Config - env Mapping[str, str]
- groups Sequence[str]
- healthcheck
Service
Task Spec Container Spec Healthcheck - hostname str
- hosts
Sequence[Service
Task Spec Container Spec Host] - isolation str
- labels
Sequence[Service
Task Spec Container Spec Label] User-defined key/value metadata
- mounts
Sequence[Service
Task Spec Container Spec Mount] - privileges
Service
Task Spec Container Spec Privileges - read_
only bool - secrets
Sequence[Service
Task Spec Container Spec Secret] - stop_
grace_ strperiod - stop_
signal str - sysctl Mapping[str, Any]
- user str
- image String
- args List<String>
- commands List<String>
- configs List<Property Map>
- dir String
- dns
Config Property Map - env Map<String>
- groups List<String>
- healthcheck Property Map
- hostname String
- hosts List<Property Map>
- isolation String
- labels List<Property Map>
User-defined key/value metadata
- mounts List<Property Map>
- privileges Property Map
- read
Only Boolean - secrets List<Property Map>
- stop
Grace StringPeriod - stop
Signal String - sysctl Map<Any>
- user String
ServiceTaskSpecContainerSpecConfig, ServiceTaskSpecContainerSpecConfigArgs
ServiceTaskSpecContainerSpecDnsConfig, ServiceTaskSpecContainerSpecDnsConfigArgs
- Nameservers List<string>
- Options List<string>
- Searches List<string>
- Nameservers []string
- Options []string
- Searches []string
- nameservers List<String>
- options List<String>
- searches List<String>
- nameservers string[]
- options string[]
- searches string[]
- nameservers Sequence[str]
- options Sequence[str]
- searches Sequence[str]
- nameservers List<String>
- options List<String>
- searches List<String>
ServiceTaskSpecContainerSpecHealthcheck, ServiceTaskSpecContainerSpecHealthcheckArgs
- Tests List<string>
- Interval string
- Retries int
- Start
Period string - Timeout string
- Tests []string
- Interval string
- Retries int
- Start
Period string - Timeout string
- tests List<String>
- interval String
- retries Integer
- start
Period String - timeout String
- tests string[]
- interval string
- retries number
- start
Period string - timeout string
- tests Sequence[str]
- interval str
- retries int
- start_
period str - timeout str
- tests List<String>
- interval String
- retries Number
- start
Period String - timeout String
ServiceTaskSpecContainerSpecHost, ServiceTaskSpecContainerSpecHostArgs
ServiceTaskSpecContainerSpecLabel, ServiceTaskSpecContainerSpecLabelArgs
ServiceTaskSpecContainerSpecMount, ServiceTaskSpecContainerSpecMountArgs
- target String
- type String
- bind
Options Property Map - read
Only Boolean - source String
- tmpfs
Options Property Map - volume
Options Property Map
ServiceTaskSpecContainerSpecMountBindOptions, ServiceTaskSpecContainerSpecMountBindOptionsArgs
- Propagation string
- Propagation string
- propagation String
- propagation string
- propagation str
- propagation String
ServiceTaskSpecContainerSpecMountTmpfsOptions, ServiceTaskSpecContainerSpecMountTmpfsOptionsArgs
- mode int
Scheduling mode for the service
- size_
bytes int
ServiceTaskSpecContainerSpecMountVolumeOptions, ServiceTaskSpecContainerSpecMountVolumeOptionsArgs
- Driver
Name string - Driver
Options Dictionary<string, string> - Labels
List<Service
Task Spec Container Spec Mount Volume Options Label> User-defined key/value metadata
- No
Copy bool
- Driver
Name string - Driver
Options map[string]string - Labels
[]Service
Task Spec Container Spec Mount Volume Options Label User-defined key/value metadata
- No
Copy bool
- driver
Name String - driver
Options Map<String,String> - labels
List<Service
Task Spec Container Spec Mount Volume Options Label> User-defined key/value metadata
- no
Copy Boolean
- driver
Name string - driver
Options {[key: string]: string} - labels
Service
Task Spec Container Spec Mount Volume Options Label[] User-defined key/value metadata
- no
Copy boolean
- driver_
name str - driver_
options Mapping[str, str] - labels
Sequence[Service
Task Spec Container Spec Mount Volume Options Label] User-defined key/value metadata
- no_
copy bool
- driver
Name String - driver
Options Map<String> - labels List<Property Map>
User-defined key/value metadata
- no
Copy Boolean
ServiceTaskSpecContainerSpecMountVolumeOptionsLabel, ServiceTaskSpecContainerSpecMountVolumeOptionsLabelArgs
ServiceTaskSpecContainerSpecPrivileges, ServiceTaskSpecContainerSpecPrivilegesArgs
ServiceTaskSpecContainerSpecPrivilegesCredentialSpec, ServiceTaskSpecContainerSpecPrivilegesCredentialSpecArgs
ServiceTaskSpecContainerSpecPrivilegesSeLinuxContext, ServiceTaskSpecContainerSpecPrivilegesSeLinuxContextArgs
ServiceTaskSpecContainerSpecSecret, ServiceTaskSpecContainerSpecSecretArgs
ServiceTaskSpecLogDriver, ServiceTaskSpecLogDriverArgs
ServiceTaskSpecNetworksAdvanced, ServiceTaskSpecNetworksAdvancedArgs
- Name string
Name of the service
- Aliases List<string>
- Driver
Opts List<string>
- Name string
Name of the service
- Aliases []string
- Driver
Opts []string
- name String
Name of the service
- aliases List<String>
- driver
Opts List<String>
- name string
Name of the service
- aliases string[]
- driver
Opts string[]
- name str
Name of the service
- aliases Sequence[str]
- driver_
opts Sequence[str]
- name String
Name of the service
- aliases List<String>
- driver
Opts List<String>
ServiceTaskSpecPlacement, ServiceTaskSpecPlacementArgs
- Constraints List<string>
- Max
Replicas int - Platforms
List<Service
Task Spec Placement Platform> - Prefs List<string>
- Constraints []string
- Max
Replicas int - Platforms
[]Service
Task Spec Placement Platform - Prefs []string
- constraints List<String>
- max
Replicas Integer - platforms
List<Service
Task Spec Placement Platform> - prefs List<String>
- constraints string[]
- max
Replicas number - platforms
Service
Task Spec Placement Platform[] - prefs string[]
- constraints Sequence[str]
- max_
replicas int - platforms
Sequence[Service
Task Spec Placement Platform] - prefs Sequence[str]
- constraints List<String>
- max
Replicas Number - platforms List<Property Map>
- prefs List<String>
ServiceTaskSpecPlacementPlatform, ServiceTaskSpecPlacementPlatformArgs
- Architecture string
- Os string
- Architecture string
- Os string
- architecture String
- os String
- architecture string
- os string
- architecture str
- os str
- architecture String
- os String
ServiceTaskSpecResources, ServiceTaskSpecResourcesArgs
ServiceTaskSpecResourcesLimits, ServiceTaskSpecResourcesLimitsArgs
- Memory
Bytes int - Nano
Cpus int
- Memory
Bytes int - Nano
Cpus int
- memory
Bytes Integer - nano
Cpus Integer
- memory
Bytes number - nano
Cpus number
- memory_
bytes int - nano_
cpus int
- memory
Bytes Number - nano
Cpus Number
ServiceTaskSpecResourcesReservation, ServiceTaskSpecResourcesReservationArgs
- generic
Resources Property Map - memory
Bytes Number - nano
Cpus Number
ServiceTaskSpecResourcesReservationGenericResources, ServiceTaskSpecResourcesReservationGenericResourcesArgs
- Discrete
Resources List<string>Specs - Named
Resources List<string>Specs
- Discrete
Resources []stringSpecs - Named
Resources []stringSpecs
- discrete
Resources List<String>Specs - named
Resources List<String>Specs
- discrete
Resources string[]Specs - named
Resources string[]Specs
- discrete_
resources_ Sequence[str]specs - named_
resources_ Sequence[str]specs
- discrete
Resources List<String>Specs - named
Resources List<String>Specs
ServiceTaskSpecRestartPolicy, ServiceTaskSpecRestartPolicyArgs
- Condition string
- Delay string
- Max
Attempts int - Window string
- Condition string
- Delay string
- Max
Attempts int - Window string
- condition String
- delay String
- max
Attempts Integer - window String
- condition string
- delay string
- max
Attempts number - window string
- condition str
- delay str
- max_
attempts int - window str
- condition String
- delay String
- max
Attempts Number - window String
ServiceUpdateConfig, ServiceUpdateConfigArgs
- Delay string
Delay between task updates
(ns|us|ms|s|m|h)
. Defaults to0s
.- Failure
Action string Action on update failure:
pause
,continue
orrollback
. Defaults topause
.- Max
Failure stringRatio Failure rate to tolerate during an update. Defaults to
0.0
.- Monitor string
Duration after each task update to monitor for failure (ns|us|ms|s|m|h). Defaults to
5s
.- Order string
Update order: either 'stop-first' or 'start-first'. Defaults to
stop-first
.- Parallelism int
Maximum number of tasks to be updated in one iteration. Defaults to
1
- Delay string
Delay between task updates
(ns|us|ms|s|m|h)
. Defaults to0s
.- Failure
Action string Action on update failure:
pause
,continue
orrollback
. Defaults topause
.- Max
Failure stringRatio Failure rate to tolerate during an update. Defaults to
0.0
.- Monitor string
Duration after each task update to monitor for failure (ns|us|ms|s|m|h). Defaults to
5s
.- Order string
Update order: either 'stop-first' or 'start-first'. Defaults to
stop-first
.- Parallelism int
Maximum number of tasks to be updated in one iteration. Defaults to
1
- delay String
Delay between task updates
(ns|us|ms|s|m|h)
. Defaults to0s
.- failure
Action String Action on update failure:
pause
,continue
orrollback
. Defaults topause
.- max
Failure StringRatio Failure rate to tolerate during an update. Defaults to
0.0
.- monitor String
Duration after each task update to monitor for failure (ns|us|ms|s|m|h). Defaults to
5s
.- order String
Update order: either 'stop-first' or 'start-first'. Defaults to
stop-first
.- parallelism Integer
Maximum number of tasks to be updated in one iteration. Defaults to
1
- delay string
Delay between task updates
(ns|us|ms|s|m|h)
. Defaults to0s
.- failure
Action string Action on update failure:
pause
,continue
orrollback
. Defaults topause
.- max
Failure stringRatio Failure rate to tolerate during an update. Defaults to
0.0
.- monitor string
Duration after each task update to monitor for failure (ns|us|ms|s|m|h). Defaults to
5s
.- order string
Update order: either 'stop-first' or 'start-first'. Defaults to
stop-first
.- parallelism number
Maximum number of tasks to be updated in one iteration. Defaults to
1
- delay str
Delay between task updates
(ns|us|ms|s|m|h)
. Defaults to0s
.- failure_
action str Action on update failure:
pause
,continue
orrollback
. Defaults topause
.- max_
failure_ strratio Failure rate to tolerate during an update. Defaults to
0.0
.- monitor str
Duration after each task update to monitor for failure (ns|us|ms|s|m|h). Defaults to
5s
.- order str
Update order: either 'stop-first' or 'start-first'. Defaults to
stop-first
.- parallelism int
Maximum number of tasks to be updated in one iteration. Defaults to
1
- delay String
Delay between task updates
(ns|us|ms|s|m|h)
. Defaults to0s
.- failure
Action String Action on update failure:
pause
,continue
orrollback
. Defaults topause
.- max
Failure StringRatio Failure rate to tolerate during an update. Defaults to
0.0
.- monitor String
Duration after each task update to monitor for failure (ns|us|ms|s|m|h). Defaults to
5s
.- order String
Update order: either 'stop-first' or 'start-first'. Defaults to
stop-first
.- parallelism Number
Maximum number of tasks to be updated in one iteration. Defaults to
1
Package Details
- Repository
- Docker pulumi/pulumi-docker
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
docker
Terraform Provider.