-
Notifications
You must be signed in to change notification settings - Fork 2.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
Docker API /containers/{id}/archive #6050
Comments
Yep, a few remote endpoints (those for copy, exec, and I believe the network commands) are still being worked on. |
@mheon can't wait for it to use buildpacks/pack#564 |
@abitrolly https://docs.docker.com/engine/api/v1.40/#operation/ContainerArchiveInfo is this what you are after? if so, you are correct, this is a bug. would you be willing to contribute? |
I am not sure. While it seems pretty interesting, my motivation is still pretty low as I am not backed by any big company and on the personal scale I also won't be able to use it, because |
A friendly reminder that this issue had no activity for 30 days. |
@abitrolly Does the master branch work for you now? |
This is not implemented yet. We added the endpoints, but they just throw "not implemented" errors for now. Definitely on our radar, though, but will probably be combined with a rewrite of CLI |
Changing to kind/feature as this is a new feature |
@lsm5 are you interested in looking into it? I think we can start with adding a docker/compat endpoint first. AFAIUI we have to mount the container and the archive the specified path inside the container and throw it back over the wire. |
@vrothberg This is part of the copy work, so I'll be on this one once we're off bug week. |
@mheon, sorry, I didn't notice you just self-assigned yesterday. |
I noticed that the API endpoint to upload an archive in Podman uses different HTTP method than the corresponding API in Docker. The former uses POST and the latter uses PUT. Is the difference intentional? [1] https://docs.podman.io/en/latest/_static/api.html#operation/putArchive |
A friendly reminder that this issue had no activity for 30 days. |
Thanks for the fix #7638. The HTTP methods are consistent with Docker now, but that endpoint still returns "501 Not Implemented" as of Podman 2.1.1. |
Is there a timeline for when this issue may be addressed? For context, this prevents osbs from switching away from docker to podman. |
I take it that this is fixed in the main branch now, and you just are waiting for a release of podman 2.1.2 or 2.2 to get the fix? If I am mistaken, please reopen this issue. |
@rhatdan, the previously mentioned fix was for changing the HTTP method to match what the docker API uses. IIUC, the API method is still returning 501 Not Implemented. Did I miss something? |
This is not fixed, and will require significant effort to implement. There's a Jira card assigned to me for it, but I have other priorities at the moment. |
FYI, I just tried this with the pack cli and ran into the lack of the archive method. Specific log message here: Full log here: Versions:
|
@jwhonce Is this something you could look at? |
Since #8126 has merged, we can close. I am currently working on refactoring the backend so that |
@vrothberg could that fix the issue buildpacks/pack#966 with |
@abitrolly, I do not see why the upper issue is failing. If it's only failing because the archive endpoint was missing, then it should be fixed. |
/kind bug
Accessing
/containers/{id}/archive
on 1.9.1 gives 404. I guess it is not implemented yet.https://docs.docker.com/engine/api/v1.38/#operation/ContainerArchive
The text was updated successfully, but these errors were encountered: