-
Notifications
You must be signed in to change notification settings - Fork 18.7k
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
Deprecate "daemon" subcommand #26834
Conversation
@@ -24,6 +24,7 @@ func newDaemonCommand() *cobra.Command { | |||
RunE: func(cmd *cobra.Command, args []string) error { | |||
return runDaemon() | |||
}, | |||
Deprecated: "and will be removed in docker 1.16. Please run `dockerd` directly.", |
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.
Cobra automatically prepends "Command "daemon" is deprecated, "
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.
It's really pedantic, but shouldn't this be removed in Docker 1.16.
(capital D)? 😇
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.
Heh, let me update ❤️
Nice! LGTM. (And thanks, this was on my list to address later this week) |
LGTM |
CI is failing (I suspected that could happen, but was lazy and didn't run locally 😇 )
|
The daemon is in a separate (dockerd) binary since docker 1.12, so should no longer be used. This marks the command as deprecated, and adds it to the deprecated features list. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
8c76278
to
bf58dd8
Compare
// Skip first line | ||
helpOut = helpOut[1:] | ||
} | ||
// Skip first line, it is just "Commands:" |
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 first wanted to ignore "deprecation" message in the error handling, but decided that it's probably ok to just skip the daemon
command in this test, as it's now deprecated.
Updated the test, fingers crossed 😄 |
LGTM 🐸 |
LGTM |
@thaJeztah WDYT, should I remove completion for |
I would remove the completion. Normally the daemon will be running anyway. On 5 Nov 2016 17:58, "Harald Albers" notifications@github.com wrote:
|
- What I did
- How I did it
- How to verify it
Build docker, and run
docker daemon
. Check that the output shows;- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)
The daemon is in a separate (dockerd) binary
since docker 1.12, so should no longer be
used.
This marks the command as deprecated, and
adds it to the deprecated features list.
ping @jhowardmsft @dnephin PTAL