Linux docker swarm在检查节点详细信息时抛出404页未找到错误

Linux docker swarm在检查节点详细信息时抛出404页未找到错误,linux,docker,docker-swarm,Linux,Docker,Docker Swarm,我正在建立一个群集。我可以通过docker-H:4000 info查看详细信息。但是,当我尝试docker-H:4000节点ls时,它失败了 OS-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

我正在建立一个群集。我可以通过
docker-H:4000 info
查看详细信息。但是,当我尝试
docker-H:4000节点ls
时,它失败了

OS-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 -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 -H :4000 node ls
*Error response from daemon: 404 page not found*
[Service]
[Service] Environment="HTTP_PROXY=http://proxy-domain.com:port" "HTTPS_PROXY=https://proxy-domain.com:port"
[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
码头工人信息

$ 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 -H :4000 node ls
*Error response from daemon: 404 page not found*
[Service]
[Service] Environment="HTTP_PROXY=http://proxy-domain.com:port" "HTTPS_PROXY=https://proxy-domain.com:port"
[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
docker节点ls

$ 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 -H :4000 node ls
*Error response from daemon: 404 page not found*
[Service]
[Service] Environment="HTTP_PROXY=http://proxy-domain.com:port" "HTTPS_PROXY=https://proxy-domain.com:port"
[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
http proxy.conf

$ 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 -H :4000 node ls
*Error response from daemon: 404 page not found*
[Service]
[Service] Environment="HTTP_PROXY=http://proxy-domain.com:port" "HTTPS_PROXY=https://proxy-domain.com:port"
[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
docker.conf

$ 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 -H :4000 node ls
*Error response from daemon: 404 page not found*
[Service]
[Service] Environment="HTTP_PROXY=http://proxy-domain.com:port" "HTTPS_PROXY=https://proxy-domain.com:port"
[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
/
启动
/
停止
/
rmi
/
rm
/
网络
命令,而不会出现任何问题。它的“节点”命令不适用于swarm群集


提前感谢

我目前正在使用docker swarm和服务发现(Consor)。docker swarm节点管理在新的docker swarm模式下可用(docker engine 1.12+本机支持)。我将把基础设施更新为新的swarm模式,并在这里提供我的发现