Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"check swarm status" only works on manager node #80

Open
guillomovitch opened this issue Jun 11, 2021 · 0 comments
Open

"check swarm status" only works on manager node #80

guillomovitch opened this issue Jun 11, 2021 · 0 comments

Comments

@guillomovitch
Copy link

check_swarm status checking is implemented by requesting http:/swarm URL, whereas this seems to works only on manager nodes:
$> curl --unix-socket /var/run/docker.sock http:/swarm
{"message":"This node is not a swarm manager. Worker nodes can't be used to view or modify cluster state. Please run this command on a manager node or promote the current node to a manager."}

Parsing http:/info result seems a more portable option.

I checked it with docker versions 19.03.14 and 20.10.7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant