cli/command/container: implement docker run --annotation#4156
cli/command/container: implement docker run --annotation#4156thaJeztah merged 1 commit intodocker:masterfrom
docker run --annotation#4156Conversation
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 |
albers
left a comment
There was a problem hiding this comment.
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
thaJeztah
left a comment
There was a problem hiding this comment.
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=baris 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
--annotationflag as an*opts.MapOpts.- How to verify it
Run
docker run --annotation foo=bar, and rundocker inspectto 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)
🐧