docker swarm在检查节点细节时抛出404页未find错误
我正在build立一个群集。 我能够看到docker -H :4000 info
的细节。 但是,当我尝试docker -H :4000 node ls
失败。
操作系统 – RHEL 7
docker版本 :
$ 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信息 :
$ 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节点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
/network
命令,没有任何问题。 其“节点”命令不适用于群集。
提前致谢
我目前正在使用docker群与服务发现(领事)。 docker群pipe理可用于新的docker群模式(由docker引擎1.12+本地支持 – https://docs.docker.com/engine/swarm/ )。 我将把基础设施更新到新的群模式,并将在这里提供我的发现。