-
Notifications
You must be signed in to change notification settings - Fork 18.9k
Deprecate /containers/(id or name)/copy endpoint #22149
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
Conversation
api/server/router/container/copy.go
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure this is the right error — as discussed a little bit with @thaJeztah, a simple HTTP 404 error should be fine.
|
In general, SGTM, we can discuss the implementation, and we need to have a note in the API changelog |
96a36d8 to
17e6819
Compare
api/server/router/container/copy.go
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I probably should add a comment here (instead of in api/server/router/container/container.go
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
211b278 to
e3d9b60
Compare
|
moved this to code review; can you update the comment and documentation? |
e3d9b60 to
62fc0ce
Compare
|
Updated 👼 |
62fc0ce to
52f1d53
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/vcontainers/?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
damn me 😭
52f1d53 to
1cbf51a
Compare
|
LGTM, don't forget to remove it from the API docs; https://github.com/docker/docker/blob/master/docs/reference/api/docker_remote_api_v1.24.md#copy-files-or-folders-from-a-container |
1cbf51a to
6b01d44
Compare
|
@thaJeztah ahh good point 😊 Updated 👼 |
|
LGTM (code and docs) |
|
ping @vdemeester sorry, this needs a rebase 😢 |
2e46a3e to
e452ebc
Compare
|
oh! actually, can you add an entry to the "deprecated features" page? This endpoint was deprecated before we had that document, so I think we should add a mention there. Also just discussing with @justincormack that we should have a deprecation policy for old API version (how many versions should we support?) otherwise removing these endpoints won't bring us much, because we still have to maintain it if we keep the old API versions |
|
@thaJeztah ok 😝 and completely agree with the depreciation policy 😇 |
This endpoint has been deprecated since 1.8. Return an error starting from this API version (1.24) in order to make sure it's not used for the next API version and so that we can remove it some times later. Signed-off-by: Vincent Demeester <vincent@sbr.pm>
e452ebc to
4283289
Compare
|
ping @justincormack @calavera PTAL |
|
LGTM |
|
Author docs LGTM 😝 |
`/containers/<name>/copy` endpoint was deprecated in 1.8 and errors since 1.12. See moby#22149 for more info. Signed-off-by: Roman Volosatovs <roman.volosatovs@docker.com>
`/containers/<name>/copy` endpoint was deprecated in 1.8 and errors since 1.12. See moby/moby#22149 for more info. Signed-off-by: Roman Volosatovs <roman.volosatovs@docker.com> Upstream-commit: a34d804572882e2251de7769efd075886c76ea10 Component: engine
`/containers/<name>/copy` endpoint was deprecated in 1.8 and errors since 1.12. See moby#22149 for more info. Signed-off-by: Roman Volosatovs <roman.volosatovs@docker.com> (cherry picked from commit a34d804) Signed-off-by: Cory Snider <csnider@mirantis.com>
This endpoint has been deprecated since 1.8. Return an error starting from this API version (1.24) in order to make sure it's not used for the next API version and so that we can remove it some times later 🐮.
This is probably the cleanest and simple way to handle that.
🐸
Signed-off-by: Vincent Demeester vincent@sbr.pm