-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
Docker container -> volume deps are broken #5728
Comments
Hi @lvjp! I just reproduced this using the configuration in your gist. I'm using: main.tf provider "docker" {
host = "unix:///var/run/docker.sock"
}
resource "docker_container" "dummy_container" {
name = "dummy"
image = "${docker_image.dummy_image.latest}"
must_run = "true"
entrypoint = [ "/bin/sleep" ]
command = [ "365d" ]
volumes = {
volume_name = "${docker_volume.dummy_volume.name}"
container_path = "/tmp/dummy"
}
}
resource "docker_image" "dummy_image" {
name = "busybox:latest"
}
resource "docker_volume" "dummy_volume" {
name = "dummy-volume"
} A
And using
And finally,
Running
I need to look more into the mechanics of |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Resource
docker_volume
in not in dependencies ifdocker_container
even if it's used.You can see my problem through this gist
The text was updated successfully, but these errors were encountered: