-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
cli/command/container: implement docker run --annotation
#4156
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #4156 +/- ##
=======================================
Coverage 58.86% 58.87%
=======================================
Files 572 572
Lines 49544 49556 +12
=======================================
+ Hits 29162 29174 +12
Misses 18616 18616
Partials 1766 1766 |
Thanks! This should probably be fine, but before we merge, I want to do a quick check look; ISTR we discussed some of this, and whether or not to add this "as-is", have a "porcelain" option (for runtime annotations), etc. (But it's been some time, so I need to read up / read back on some of that). |
This feature has been already implemented in |
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.
Completions LGTM, thanks.
@thaJeztah Can we merge this? |
We discussed this in the maintainers meeting, and generally are ok with the current implementation. There were some concerns;
Thanks! |
8f76769
to
907d2d5
Compare
For moby/moby PR 45025 (Docker v24, API v1.43). `docker run --annotation foo=bar` is similar to `podman run --annotation foo=bar`, however, unlike Podman, Docker implementation also accepts an annotation with an empty value. (`docker run --annotation foo`) Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
907d2d5
to
88be16c
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.
LGTM
I haven't seen strong voices about alternative naming for the flag, so I'll bring this one in. Thanks!
- What I did
Implemented
docker run --annotation
.For moby/moby#45025 (Docker v24, API v1.43).
docker run --annotation foo=bar
is similar topodman run --annotation foo=bar
, however, unlike Podman, Docker implementation also accepts an annotation with an empty value. (docker run --annotation foo
)- How I did it
Added the
--annotation
flag as an*opts.MapOpts
.- How to verify it
Run
docker run --annotation foo=bar
, and rundocker inspect
to confirm that the annotation is set.- Description for the changelog
cli/command/container: implement
docker run --annotation
- A picture of a cute animal (not mandatory but encouraged)
🐧