我正在设置群集群。我可以使用docker -H :4000 info
查看详细信息。但是,当我尝试docker -H :4000 node ls
时,它失败了。
OS - RHEL 7
泊坞广告版:
$ docker version
Client:
Version: 1.12.3
API version: 1.24
Go version: go1.6.3
Git commit: 6b644ec
Built:
OS/Arch: linux/amd64
Server:
Version: 1.12.3
API version: 1.24
Go version: go1.6.3
Git commit: 6b644ec
Built:
OS/Arch: linux/amd64
泊坞广告信息:
$ docker -H :4000 info
Containers: 23
Running: 23
Paused: 0
Stopped: 0
Images: 35
Server Version: swarm/1.2.5
Role: primary
Strategy: spread
Filters: health, port, containerslots, dependency, affinity, constraint
Nodes: 7
...
...
Plugins:
Volume:
Network:
Swarm:
NodeID:
Is Manager: false
Node Address:
Security Options:
Kernel Version: 3.10.0-327.18.2.el7.x86_64
Operating System: linux
Architecture: amd64
CPUs: 28
Total Memory: 114 GiB
Name: c7ef56122f88
Docker Root Dir:
Debug Mode (client): false
Debug Mode (server): false
docker node ls :
docker -H :4000 node ls
*Error response from daemon: 404 page not found*
HTTP-proxy.conf :
[Service]
[Service] Environment="HTTP_PROXY=http://proxy-domain.com:port" "HTTPS_PROXY=https://proxy-domain.com:port"
docker.conf :
[Service]
ExecStart=
ExecStart=/usr/bin/dockerd -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock -g /docker --cluster-store=consul://0.0.0.0:8500 --cluster-advertise eth0:2375
不确定我在这里缺少什么。我的目标是应用swarm节点标签元数据,以便我可以将不同的池作为其大小。 任何帮助,将不胜感激。
PS :我可以
docker -H 4000 pull
/start
/stop
/rmi
/rm
/ {{1}没有任何问题的命令。它的节点"命令不适用于群集群集。
先谢谢