-
-
Notifications
You must be signed in to change notification settings - Fork 792
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 resource not idempotent ? #27
Comments
It should be idempotent in most if not all use cases. Can you send a sample recipe where you're not seeing the correct behavior? I'd also like to see the DEBUG output if possible. Thanks |
I am basically using it in an application/wrapper cookbook, just a simple recipe with the following content:
We're talking about DEBUG output of the chef-client here ? |
Okay its not being idempotent because its currently using the command attribute to determine if it's running. I'll be able to take a look at this further tomorrow |
I see, It's just that a lot of docker containers just bake the CMD in their Dockerfiles, that was my case. Extra thanks. |
I had written the cookbook before dockerfiles existed. Just need to account for the newer use cases. |
This should be fixed in 0.14 of the cookbook, which I'm releasing now. Please test and let me know if this doesn't work still. |
Awesome, will check it out now |
Fixed in 0.14.0 |
Hi,
Thanks for the cookbook, I was wondering if it was not designed to be idempotent ?
I am basically using the docker_container resource, however with each chef run a new container is created !
Any hints ?
The text was updated successfully, but these errors were encountered: