github.com/kelda-inc/moby@v1.13.1/docs/reference/commandline/node_inspect.md (about) 1 --- 2 title: "node inspect" 3 description: "The node inspect command description and usage" 4 keywords: "node, inspect" 5 --- 6 7 <!-- This file is maintained within the docker/docker Github 8 repository at https://github.com/docker/docker/. Make all 9 pull requests against that repo. If you see this file in 10 another repository, consider it read-only there, as it will 11 periodically be overwritten by the definitive file. Pull 12 requests which include edits to this file in other repositories 13 will be rejected. 14 --> 15 16 # node inspect 17 18 ```markdown 19 Usage: docker node inspect [OPTIONS] self|NODE [NODE...] 20 21 Display detailed information on one or more nodes 22 23 Options: 24 -f, --format string Format the output using the given Go template 25 --help Print usage 26 --pretty Print the information in a human friendly format. 27 ``` 28 29 Returns information about a node. By default, this command renders all results 30 in a JSON array. You can specify an alternate format to execute a 31 given template for each result. Go's 32 [text/template](http://golang.org/pkg/text/template/) package describes all the 33 details of the format. 34 35 Example output: 36 37 $ docker node inspect swarm-manager 38 [ 39 { 40 "ID": "e216jshn25ckzbvmwlnh5jr3g", 41 "Version": { 42 "Index": 10 43 }, 44 "CreatedAt": "2016-06-16T22:52:44.9910662Z", 45 "UpdatedAt": "2016-06-16T22:52:45.230878043Z", 46 "Spec": { 47 "Role": "manager", 48 "Availability": "active" 49 }, 50 "Description": { 51 "Hostname": "swarm-manager", 52 "Platform": { 53 "Architecture": "x86_64", 54 "OS": "linux" 55 }, 56 "Resources": { 57 "NanoCPUs": 1000000000, 58 "MemoryBytes": 1039843328 59 }, 60 "Engine": { 61 "EngineVersion": "1.12.0", 62 "Plugins": [ 63 { 64 "Type": "Volume", 65 "Name": "local" 66 }, 67 { 68 "Type": "Network", 69 "Name": "overlay" 70 }, 71 { 72 "Type": "Network", 73 "Name": "null" 74 }, 75 { 76 "Type": "Network", 77 "Name": "host" 78 }, 79 { 80 "Type": "Network", 81 "Name": "bridge" 82 }, 83 { 84 "Type": "Network", 85 "Name": "overlay" 86 } 87 ] 88 } 89 }, 90 "Status": { 91 "State": "ready", 92 "Addr": "168.0.32.137" 93 }, 94 "ManagerStatus": { 95 "Leader": true, 96 "Reachability": "reachable", 97 "Addr": "168.0.32.137:2377" 98 } 99 } 100 ] 101 102 {% raw %} 103 $ docker node inspect --format '{{ .ManagerStatus.Leader }}' self 104 false 105 {% endraw %} 106 107 $ docker node inspect --pretty self 108 ID: e216jshn25ckzbvmwlnh5jr3g 109 Hostname: swarm-manager 110 Joined at: 2016-06-16 22:52:44.9910662 +0000 utc 111 Status: 112 State: Ready 113 Availability: Active 114 Address: 172.17.0.2 115 Manager Status: 116 Address: 172.17.0.2:2377 117 Raft Status: Reachable 118 Leader: Yes 119 Platform: 120 Operating System: linux 121 Architecture: x86_64 122 Resources: 123 CPUs: 4 124 Memory: 7.704 GiB 125 Plugins: 126 Network: overlay, bridge, null, host, overlay 127 Volume: local 128 Engine Version: 1.12.0 129 130 ## Related information 131 132 * [node demote](node_demote.md) 133 * [node ls](node_ls.md) 134 * [node promote](node_promote.md) 135 * [node ps](node_ps.md) 136 * [node rm](node_rm.md) 137 * [node update](node_update.md)