Service
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
Properties
Configuration for the authentication for pulling the images of the service
A configuration to ensure that a service converges aka reaches the desired that of all task up and running
Properties that can be configured to access and load balance a service
User-defined key/value metadata
Scheduling mode for the service
Specification for the rollback strategy of the service
User modifiable task configuration
Specification for the update strategy of the service