|
@@ -29,7 +29,7 @@ Lists all the nodes that the Docker Swarm manager knows about. You can filter us
|
|
Example output:
|
|
Example output:
|
|
|
|
|
|
$ docker node ls
|
|
$ docker node ls
|
|
- ID NAME MEMBERSHIP STATUS AVAILABILITY MANAGER STATUS LEADER
|
|
|
|
|
|
+ ID HOSTNAME MEMBERSHIP STATUS AVAILABILITY MANAGER STATUS LEADER
|
|
1bcef6utixb0l0ca7gxuivsj0 swarm-worker2 Accepted Ready Active
|
|
1bcef6utixb0l0ca7gxuivsj0 swarm-worker2 Accepted Ready Active
|
|
38ciaotwjuritcdtn9npbnkuz swarm-worker1 Accepted Ready Active
|
|
38ciaotwjuritcdtn9npbnkuz swarm-worker1 Accepted Ready Active
|
|
e216jshn25ckzbvmwlnh5jr3g * swarm-manager1 Accepted Ready Active Reachable Yes
|
|
e216jshn25ckzbvmwlnh5jr3g * swarm-manager1 Accepted Ready Active Reachable Yes
|
|
@@ -53,7 +53,7 @@ The `name` filter matches on all or part of a node name.
|
|
The following filter matches the node with a name equal to `swarm-master` string.
|
|
The following filter matches the node with a name equal to `swarm-master` string.
|
|
|
|
|
|
$ docker node ls -f name=swarm-manager1
|
|
$ docker node ls -f name=swarm-manager1
|
|
- ID NAME MEMBERSHIP STATUS AVAILABILITY MANAGER STATUS LEADER
|
|
|
|
|
|
+ ID HOSTNAME MEMBERSHIP STATUS AVAILABILITY MANAGER STATUS LEADER
|
|
e216jshn25ckzbvmwlnh5jr3g * swarm-manager1 Accepted Ready Active Reachable Yes
|
|
e216jshn25ckzbvmwlnh5jr3g * swarm-manager1 Accepted Ready Active Reachable Yes
|
|
|
|
|
|
### id
|
|
### id
|
|
@@ -61,7 +61,7 @@ The following filter matches the node with a name equal to `swarm-master` string
|
|
The `id` filter matches all or part of a node's id.
|
|
The `id` filter matches all or part of a node's id.
|
|
|
|
|
|
$ docker node ls -f id=1
|
|
$ docker node ls -f id=1
|
|
- ID NAME MEMBERSHIP STATUS AVAILABILITY MANAGER STATUS LEADER
|
|
|
|
|
|
+ ID HOSTNAME MEMBERSHIP STATUS AVAILABILITY MANAGER STATUS LEADER
|
|
1bcef6utixb0l0ca7gxuivsj0 swarm-worker2 Accepted Ready Active
|
|
1bcef6utixb0l0ca7gxuivsj0 swarm-worker2 Accepted Ready Active
|
|
|
|
|
|
|
|
|
|
@@ -74,7 +74,7 @@ The following filter matches nodes with the `usage` label regardless of its valu
|
|
|
|
|
|
```bash
|
|
```bash
|
|
$ docker node ls -f "label=foo"
|
|
$ docker node ls -f "label=foo"
|
|
-ID NAME MEMBERSHIP STATUS AVAILABILITY MANAGER STATUS LEADER
|
|
|
|
|
|
+ID HOSTNAME MEMBERSHIP STATUS AVAILABILITY MANAGER STATUS LEADER
|
|
1bcef6utixb0l0ca7gxuivsj0 swarm-worker2 Accepted Ready Active
|
|
1bcef6utixb0l0ca7gxuivsj0 swarm-worker2 Accepted Ready Active
|
|
```
|
|
```
|
|
|
|
|