github.com/kim0/docker@v0.6.2-0.20161130212042-4addda3f07e7/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 }, 93 "ManagerStatus": { 94 "Leader": true, 95 "Reachability": "reachable", 96 "Addr": "168.0.32.137:2377" 97 } 98 } 99 ] 100 101 {% raw %} 102 $ docker node inspect --format '{{ .ManagerStatus.Leader }}' self 103 false 104 {% endraw %} 105 106 $ docker node inspect --pretty self 107 ID: e216jshn25ckzbvmwlnh5jr3g 108 Hostname: swarm-manager 109 Joined at: 2016-06-16 22:52:44.9910662 +0000 utc 110 Status: 111 State: Ready 112 Availability: Active 113 Manager Status: 114 Address: 172.17.0.2:2377 115 Raft Status: Reachable 116 Leader: Yes 117 Platform: 118 Operating System: linux 119 Architecture: x86_64 120 Resources: 121 CPUs: 4 122 Memory: 7.704 GiB 123 Plugins: 124 Network: overlay, bridge, null, host, overlay 125 Volume: local 126 Engine Version: 1.12.0 127 128 ## Related information 129 130 * [node update](node_update.md) 131 * [node ps](node_ps.md) 132 * [node ls](node_ls.md) 133 * [node rm](node_rm.md)