docs(r/container): fix the example to keep container running

This commit is contained in:
Shunsuke Suzuki 2022-03-24 09:05:27 +09:00
parent a8517ea302
commit ce2bb25872
2 changed files with 2 additions and 0 deletions

View file

@ -17,6 +17,7 @@ Manages the lifecycle of a Docker container.
resource "docker_container" "ubuntu" {
name = "foo"
image = docker_image.ubuntu.latest
tty = true
}
# Find the latest Ubuntu precise image.

View file

@ -2,6 +2,7 @@
resource "docker_container" "ubuntu" {
name = "foo"
image = docker_image.ubuntu.latest
tty = true
}
# Find the latest Ubuntu precise image.