You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: