Skip to content
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

Allow querying for current pulls #45434

Open
mark-dr opened this issue Apr 28, 2023 · 0 comments
Open

Allow querying for current pulls #45434

mark-dr opened this issue Apr 28, 2023 · 0 comments
Labels
kind/feature Functionality or other elements that the project doesn't currently have. Features are new and shiny status/0-triage

Comments

@mark-dr
Copy link

mark-dr commented Apr 28, 2023

Description

Currently, the engine does not have a way to list the pulls that are currently in progress. If your code didn't initiate a pull, the best you can do is be notified when it completes, by listening for a pull event on /events.

This creates challenges for UI apps. For instance, suppose I have a list of images in a dashboard, and I use an integrated terminal to run docker pull. Ideally the user would see the in-progress pull in the image list, and if they went to the details page for an image, they'd be informed that a corresponding pull is in progress. There's no practical way to achieve that currently.

Proposal

  • Either:
    • Add a parameter to /images/json (strawman suggestion: include-pulls). If this is set to true, the resulting list of images should contain new entries representing pulls in progress. They would have a different shape to the other entries, so maybe it makes more sense to...
    • Add a new route (strawman suggestion: /images/pulling/json) listing all in-progress pulls, potentially also with progress information.
  • Add new events (either to /events or some new endpoint) that fire when a pull starts, or when a pull makes progress. The latter would be similar to the progress events emitted by /images/create when pulling an image.

Related issues

@mark-dr mark-dr added kind/feature Functionality or other elements that the project doesn't currently have. Features are new and shiny status/0-triage labels Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Functionality or other elements that the project doesn't currently have. Features are new and shiny status/0-triage
Projects
None yet
Development

No branches or pull requests

1 participant