فهرست منبع

Merge pull request #25512 from diogomonica/add-created-at

Adding Joined at to node inspect --pretty
Sebastiaan van Stijn 9 سال پیش
والد
کامیت
41d580c7a6
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      api/client/node/inspect.go

+ 1 - 0
api/client/node/inspect.go

@@ -88,6 +88,7 @@ func printNode(out io.Writer, node swarm.Node) {
 	}
 	}
 
 
 	ioutils.FprintfIfNotEmpty(out, "Hostname:\t\t%s\n", node.Description.Hostname)
 	ioutils.FprintfIfNotEmpty(out, "Hostname:\t\t%s\n", node.Description.Hostname)
+	fmt.Fprintf(out, "Joined at:\t\t%s\n", client.PrettyPrint(node.CreatedAt))
 	fmt.Fprintln(out, "Status:")
 	fmt.Fprintln(out, "Status:")
 	fmt.Fprintf(out, " State:\t\t\t%s\n", client.PrettyPrint(node.Status.State))
 	fmt.Fprintf(out, " State:\t\t\t%s\n", client.PrettyPrint(node.Status.State))
 	ioutils.FprintfIfNotEmpty(out, " Message:\t\t%s\n", client.PrettyPrint(node.Status.Message))
 	ioutils.FprintfIfNotEmpty(out, " Message:\t\t%s\n", client.PrettyPrint(node.Status.Message))