-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Proposal - Image defined probe #21143
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
Comments
I definitely think that this is useful to be able to set a default in the image metadata, given that the image author is going to be in the best position to say what conditions generally make a given service be considered "available" (especially if they need to write and include in the image a potentially complex script for determining as much), and then the operator can decide whether they want to use those as-is, define their own, or disable such checks entirely. The place I see instant value for this is for images like databases and their consumers -- for example, the official I've got some other comments/thoughts for the implementation itself, but I'll go post those on the issue discussing the runtime feature. 👍 |
I wonder if the configuration for these "probes" is really consistent enough between environments and different users that it would belong in the image. An image author could still provide the necessary scripts or endpoints, and document that they are available, without having to provide the probe configuration. It also seems likely that images that are extended would be forced to modify the probe configuration quite often, which could make it more work to extend these images. |
There's a pull request opened to implement this, so anyone that's interested, PTAL at #22719 |
@thaJeztah Is this issue closable? #23218 |
Yes! If forgot the "closes" mention in my carry, thanks! implemented in #23218 |
Problem statement
This is a followup to #21142 to discuss the idea of adding a way to specify a default "alive probe" for all containers started from a particular image.
Proposal
Introduce a new Dockerfile instruction to specify the probe. The (yet to be used) support for instructions options could be leveraged to model the design proposed for the CLI.
Open questions:
Ping @crosbymichael @tonistiigi @mgoelzer @aluzzardi @ehazlett
The text was updated successfully, but these errors were encountered: