mirror of
https://github.com/kreuzwerker/terraform-provider-docker.git
synced 2025-12-30 03:29:39 -05:00
* fix: Add ForceTrue to docker_image name attribute. * fix: Test for docker_image name attribute change does not need to check for specific sha sums.
12 lines
249 B
HCL
12 lines
249 B
HCL
resource "docker_image" "ubuntu" {
|
|
name = "%s"
|
|
}
|
|
|
|
resource "docker_container" "foo" {
|
|
depends_on = [
|
|
docker_image.ubuntu
|
|
]
|
|
image = docker_image.ubuntu.latest
|
|
name = "foobar"
|
|
command = ["sh", "-c", "while true ;do wait ;done"]
|
|
}
|