github.com/noxiouz/docker@v0.7.3-0.20160629055221-3d231c78e8c5/docs/reference/commandline/node_inspect.md (about)

     1  <!--[metadata]>
     2  +++
     3  title = "node inspect"
     4  description = "The node inspect command description and usage"
     5  keywords = ["node, inspect"]
     6  advisory = "rc"
     7  [menu.main]
     8  parent = "smn_cli"
     9  +++
    10  <![end-metadata]-->
    11  
    12  # node inspect
    13  
    14      Usage: docker node inspect [OPTIONS] self|NODE [NODE...]
    15  
    16      Return low-level information on a volume
    17  
    18        -f, --format=       Format the output using the given go template.
    19        --help              Print usage
    20        -p, --pretty        Print the information in a human friendly format.
    21  
    22  Returns information about a node. By default, this command renders all results
    23  in a JSON array. You can specify an alternate format to execute a
    24  given template for each result. Go's
    25  [text/template](http://golang.org/pkg/text/template/) package describes all the
    26  details of the format.
    27  
    28  Example output:
    29  
    30      $ docker node inspect swarm-manager
    31      [
    32      {
    33          "ID": "e216jshn25ckzbvmwlnh5jr3g",
    34          "Version": {
    35              "Index": 10
    36          },
    37          "CreatedAt": "2016-06-16T22:52:44.9910662Z",
    38          "UpdatedAt": "2016-06-16T22:52:45.230878043Z",
    39          "Spec": {
    40              "Role": "manager",
    41              "Membership": "accepted",
    42              "Availability": "active"
    43          },
    44          "Description": {
    45              "Hostname": "swarm-manager",
    46              "Platform": {
    47                  "Architecture": "x86_64",
    48                  "OS": "linux"
    49              },
    50              "Resources": {
    51                  "NanoCPUs": 1000000000,
    52                  "MemoryBytes": 1039843328
    53              },
    54              "Engine": {
    55                  "EngineVersion": "1.12.0",
    56                  "Plugins": [
    57                      {
    58                          "Type": "Volume",
    59                          "Name": "local"
    60                      },
    61                      {
    62                          "Type": "Network",
    63                          "Name": "overlay"
    64                      },
    65                      {
    66                          "Type": "Network",
    67                          "Name": "null"
    68                      },
    69                      {
    70                          "Type": "Network",
    71                          "Name": "host"
    72                      },
    73                      {
    74                          "Type": "Network",
    75                          "Name": "bridge"
    76                      },
    77                      {
    78                          "Type": "Network",
    79                          "Name": "overlay"
    80                      }
    81                  ]
    82              }
    83          },
    84          "Status": {
    85              "State": "ready"
    86          },
    87          "ManagerStatus": {
    88              "Leader": true,
    89              "Reachability": "reachable",
    90              "Addr": "168.0.32.137:2377"
    91          }
    92      }
    93      ]
    94  
    95      $ docker node inspect --format '{{ .ManagerStatus.Leader }}' self
    96      false
    97  
    98      $ docker node inspect --pretty self
    99      ID:                     e216jshn25ckzbvmwlnh5jr3g
   100      Hostname:               swarm-manager
   101      Status:
   102       State:                 Ready
   103       Availability:          Active
   104      Manager Status:
   105       Address:               172.17.0.2:2377
   106       Raft Status:           Reachable
   107       Leader:                Yes
   108      Platform:
   109       Operating System:      linux
   110       Architecture:          x86_64
   111      Resources:
   112       CPUs:                  4
   113       Memory:                7.704 GiB
   114      Plugins:
   115        Network:              overlay, bridge, null, host, overlay
   116        Volume:               local
   117      Engine Version:         1.12.0
   118  
   119  ## Related information
   120  
   121  * [node update](node_update.md)
   122  * [node tasks](node_tasks.md)
   123  * [node ls](node_ls.md)
   124  * [node rm](node_rm.md)