-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
info: skip client-side warning about seccomp profile on API >= 1.42 #3230
Conversation
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 think we should still show a warning for older API versions.
Also lets make sure to hold off on this until the change is in the engine.
3221543
to
d494d4c
Compare
This warning will be moved to the daemon-side, similar to how it returns other warnings. There's work in progress to change the name of the default profile, so we may need to backport this change to prevent existing clients from printing an incorrect warning if they're connecting to a newer daemon. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
d494d4c
to
8964595
Compare
Codecov Report
@@ Coverage Diff @@
## master #3230 +/- ##
==========================================
+ Coverage 58.00% 58.01% +0.01%
==========================================
Files 302 302
Lines 21743 21753 +10
==========================================
+ Hits 12613 12621 +8
- Misses 8207 8208 +1
- Partials 923 924 +1 |
@@ -254,9 +255,6 @@ func prettyPrintServerInfo(dockerCli command.Cli, info types.Info) []error { | |||
for _, o := range so.Options { | |||
switch o.Key { | |||
case "profile": | |||
if o.Value != "default" { |
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.
@cpuguy83 updated; PTAL
Alternatively, I could do:
if o.Value != "default" { | |
if o.Value != "default" && o.Value != "builtin" && versions.LessThan(dockerCli.Client().ClientVersion(), "1.42") { |
Which would bring a smaller patch, but I tried to also group the warning with the other warnings (printed at the end) instead of having it "half-way" the docker info
output here. Happy to change though if you think that's an issue.
ping @cpuguy83 PTAL 🤗 |
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
This warning will be moved to the daemon-side, similar to how it returns
other warnings. There's work in progress to change the name of the default
profile, so we may need to backport this change to prevent existing clients
from printing an incorrect warning if they're connecting to a newer daemon.
relates to moby/moby#42481
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)