mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Merge pull request #2542 from jszwedko/fix-docker-image-field
The docker-image resource expects name, not image
This commit is contained in:
commit
12e429c69c
@ -21,7 +21,7 @@ resource "docker_container" "ubuntu" {
|
|||||||
|
|
||||||
# Find the latest Ubuntu precise image.
|
# Find the latest Ubuntu precise image.
|
||||||
resource "docker_image" "ubuntu" {
|
resource "docker_image" "ubuntu" {
|
||||||
image = "ubuntu:precise"
|
name = "ubuntu:precise"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ them.
|
|||||||
```
|
```
|
||||||
# Find the latest Ubuntu precise image.
|
# Find the latest Ubuntu precise image.
|
||||||
resource "docker_image" "ubuntu" {
|
resource "docker_image" "ubuntu" {
|
||||||
image = "ubuntu:precise"
|
name = "ubuntu:precise"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Access it somewhere else with ${docker_image.ubuntu.latest}
|
# Access it somewhere else with ${docker_image.ubuntu.latest}
|
||||||
@ -28,7 +28,7 @@ resource "docker_image" "ubuntu" {
|
|||||||
|
|
||||||
The following arguments are supported:
|
The following arguments are supported:
|
||||||
|
|
||||||
* `image` - (Required) The name of the Docker image, including any tags.
|
* `name` - (Required) The name of the Docker image, including any tags.
|
||||||
* `keep_updated` - (Optional) If true, then the Docker image will always
|
* `keep_updated` - (Optional) If true, then the Docker image will always
|
||||||
be updated on the host to the latest. If this is false, as long as an
|
be updated on the host to the latest. If this is false, as long as an
|
||||||
image is downloaded with the correct tag, it won't be redownloaded if
|
image is downloaded with the correct tag, it won't be redownloaded if
|
||||||
|
Loading…
Reference in New Issue
Block a user