New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add force_remove option to r/image #104
Conversation
Hmm...
resource "docker_image" "alpine" {
name = "alpine:3.11.5"
force_remove = true
}
terraform {
required_providers {
docker = {
source = "kreuzwerker/docker"
version = "2.9.0"
}
}
}
provider "docker" {
} On the other hand, |
Oh, it's interesting.
|
When a Docker image is used by a container, it fails to remove the image by image id even if "force" option is enabled. By specifying image name, the image tag is removed successfully. #104 (comment)
Testresource "docker_image" "test" {
name = "alpine:3.11.5"
}
When
Then set resource "docker_image" "test" {
name = "alpine:3.11.5"
force_remove = true
}
When
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
force_remove
to docker_image