-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
Release notes 1.29 - initContainer information missing #12633
Comments
Seeking clarification on this also. The listed release notes refers to "Add a Is this feature enabled by the To be clear, I'm not an active participant in things. I just heard the news (of init containers in Compose). Apologies if I have something crazy wrong here. |
you can try this with my example.
if the depends_on container exits none zero, you will see an error:
|
I appreciate that as a seeming clue. Still looking forward to more official confirmation/documentation (for everyone's sake, I mean). I'm on mobile as I see this so am challenged to dig around based on this info, but I wanted to reply before losing track of my notification of your reply. Perhaps someone else may have additional thoughts. |
No |
Yes, i confirm that works. Below config starts
|
OK, it seems to be specifically that the depends_on value of service_completed_successfully is what's new in docker-compose 1.29.0, which is what gives the equivalent of initcontainer functionality in compose: that a given container/service must not only start but complete (and complete successfully) before the dependent container/service will proceed to start. Back to the initial discussion in this thread, it was just not as clear in the resources I or we (?) were looking at. Thanks. |
@jflambert, those are also self-explanatory. |
Sorry, but if all this was so "self-explanatory", why would we have raised the concern in the first place? |
@carehart, because it's not clear that it even exists. |
@bluebrown, wait, what? To be clear I'm with you on that. But you had just responded differently to @jflambert (whose comment from 2 hrs ago seems gone now, oddly). To recap, it seems that jf and @dennzo (who started the issue) and I are of the opinion that more documented clarification on these things is needed. But your reply to jf (in sharing what they had) was that it "also" was "self-explanatory". Thus my last question to you. :-) Just trying to help. |
@carehart I was just going off the fact that jf claimed In any case, I think we don't add anything productive here. At least I for my part have to admit that I was trolling a bit. My apologies. |
In case anyone stumbles upon this issue, I have some example repositories that can help users with init containers in compose
These are by no means full-proof examples but might be helpful to someone working with them |
There hasn't been any activity on this issue for a long time. Prevent issues from auto-closing with a /lifecycle stale |
/remove-lifecycle stale |
Problem description
In the version 1.29 the support for initContainers have been added through the following PR.
docker/compose#8122
But there is no reference to this feature in the release notes. Also there is no documentation provided on how to use this.
https://github.com/docker/docker.github.io/blob/master/compose/release-notes.md#1290
Problem location
I saw a problem on the following URLs:
Project version(s) affected
docker-compose - 1.29
Suggestions for a fix
Add the information to the release notes and also add some context on how to use it to the main documentation of docker-compose.
Thanks very much! :)
The text was updated successfully, but these errors were encountered: