mirror of
https://github.com/kreuzwerker/terraform-provider-docker.git
synced 2026-01-21 06:02:56 -05:00
Update service.html.markdown
support terraform 0.12
This commit is contained in:
parent
5d0f0fb806
commit
626a554d71
1 changed files with 4 additions and 5 deletions
|
|
@ -108,8 +108,7 @@ resource "docker_service" "foo" {
|
|||
|
||||
read_only = true
|
||||
|
||||
mounts = [
|
||||
{
|
||||
mounts {
|
||||
target = "/mount/test"
|
||||
source = "${docker_volume.test_volume.name}"
|
||||
type = "volume"
|
||||
|
|
@ -118,8 +117,8 @@ resource "docker_service" "foo" {
|
|||
bind_options {
|
||||
propagation = "private"
|
||||
}
|
||||
},
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
stop_signal = "SIGTERM"
|
||||
stop_grace_period = "10s"
|
||||
|
|
@ -586,4 +585,4 @@ Docker service can be imported using the long id, e.g. for a service with the sh
|
|||
|
||||
```sh
|
||||
$ terraform import docker_service.foo $(docker service inspect -f {{.ID}} 55b)
|
||||
```
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in a new issue