-
Notifications
You must be signed in to change notification settings - Fork 91
docker_container.ubuntu: Unable to start container: API error (400): #15
Comments
Apologies for the noise/previous comment 🤦♂️ This is just working fine (unable to reproduce), and the original bug may have been fixed (some of the logs are still confusing, but that would be a different issue). |
No worries @dubo-dubon-duponey :) Thank you for contributing. Which logs are still confusing? Do you have an example? |
I'm using multiple docker-nodes in the same terraform project. When testing the above, I mistakenly forgot to specify the provider for the docker_image resource:
... which means that the image itself was pulled on my laptop, while the container tried to start on a different node ("something"). The error message you get in that case is as follow:
This is confusing indeed, as this is typically what you get if you typo the image name or are not logged-in into the hub - which is definitely not the situation here. |
Hmm, TBH I don't think we can catch those configuration errors. What would you suggest @dubo-dubon-duponey ? Wait for hashicorp/terraform-plugin-sdk#61 as well? |
Yeah. That's minor either way. |
And as far as this ticket is concerned, I couldn't reproduce and probably got fixed some time ago. |
This issue was originally opened by @maks-us as hashicorp/terraform#15141. It was migrated here as part of the provider split. The original body of the issue is below.
Hi there,
Terraform Version
Terraform v0.9.6
Mac OS 10.12.5
Docker version 17.06.0-ce-rc1, build 7f8486a
Affected Resource(s)
resource "docker_container" "ubuntu"
resource "docker_image" "ubuntu"
It is example from this page https://www.terraform.io/docs/providers/docker/r/container.html
Debug Output
Error applying plan:
1 error(s) occurred:
Expected Behavior
work example from the documentation website
Actual Behavior
start ubuntu container
Steps to Reproduce
terraform apply
The text was updated successfully, but these errors were encountered: