Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add `--format` for `docker node ls` #30424
- What I did
- How I did it
This fix implements
Related documentations have been updated.
- How to verify it
A set of unit tests have been added.
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)
This fix is related to #30376.
Signed-off-by: Yong Tang firstname.lastname@example.org
Jan 25, 2017
referenced this pull request
Jan 25, 2017
Thanks @AkihiroSuda. The PR has been rebased and updated. Now an additional note has been added:
+> **Note:** +> If the `ID` field of the node is followed by a `*` (e.g., `e216jshn25ckzbvmwlnh5jr3g *`) +> in the above example output, then this node is also the node of the current docker daemon. + ## Filtering @@ -120,6 +125,35 @@ ID HOSTNAME STATUS AVAILABILITY MANAGER STATU e216jshn25ckzbvmwlnh5jr3g * swarm-manager1 Ready Active Leader
Please take a look and let me know if there are any issues.
@AkihiroSuda Thanks. The PR has been rebased.
@AkihiroSuda @vdemeester @thaJeztah I think to add
@vdemeester I just tried with empty/whitespace header
Another option is to stick with
I'm just thinking if
Given, we can already to
Thanks @thaJeztah. The PR has been updated. Now the default format is
which should achieve the same effect while at the same time allows
Heh, found a funny one. Not sure yet if it's a "bug" or just a bad template;
Don't think that's a show stopper, but wanted to leave it as a comment in case someone has thoughts on how to (and if) to address