This repository has been archived by the owner on Oct 13, 2023. It is now read-only.
[17.09] Use non-detached mode as default for service commands #230
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Backport of docker/cli#525 for 17.09
Commit 330a003 added a
--detach=false
optionto various service-related commands, with the intent to make this the default in
a future version (17.09).
This patch changes the default to use "interactive" (non-detached), allowing
users to override this by setting the
--detach
option.To prevent problems when connecting to older daemon versions (17.05 and below,
see commit db60f255617fd90cb093813dcdfe7eec840eeff8), the detach option is
ignored for those versions, and detach is always true.
Before this change, a warning was printed to announce the upcoming default:
After this change, no warning is printed, but
--detach
is disabled;Setting the
--detach
flag makes the cli use the pre-17.06 behavior:Running against a 17.03 daemon, without specifying the
--detach
flag;Signed-off-by: Sebastiaan van Stijn github@gone.nl
(cherry picked from commit 0c27355f7b07943425d360d1345c625f0e60b8cf)