Having a swarm up and running once deployed on azure
Actual behavior
When ssh in my cluster, I get the following message:
swarm-manager000000:~$ docker node ls
Error response from daemon: This node is not a swarm manager. Use “docker swarm init” or “docker swarm join” to connect this node to swarm and try again.
swarm-manager000000:~$ docker node ls
Error response from daemon: This node is not a swarm manager. Use "docker swarm init" or "docker swarm join" to connect this node to swarm and try again.
swarm-manager000000:~$ docker-diagnose
Error response from daemon: This node is not a swarm manager. Use "docker swarm init" or "docker swarm join" to connect this node to swarm and try again.
"docker node inspect" requires at least 1 argument(s).
See 'docker node inspect --help'.
Usage: docker node inspect [OPTIONS] self|NODE [NODE...]
Display detailed information on one or more nodes
Done requesting diagnostics.
Your diagnostics session ID is 1481624703-RSHaOeOhEL9oPohPyRJcgBLuCfhIWpVm
Please provide this session ID to the maintainer debugging your issue.
swarm-manager000000:~$
Thanks @kapptivate. We will need some more data from your setup. Can you share the output of the command docker logs $(docker ps --filter name=init-azure) ? Please post the output log to https://gist.github.com/ and send us the URL at docker-for-iaas@docker.com if that works for you.
Can you try docker logs $(docker ps -a | grep init-azure | cut -d' ' -f1) please? The init container doesnot show up in regular docker ps output since it exits after some init tasks.
@k1ck3rtw the earlier issue resulted from incorrect SP credentials passed to the ARM template. What failure are you seeing? Does docker node ls work successfully from the master nodes?
This issue has been resolved. The problem was when running
"docker4x/create-sp-azure", it would use my default Azure resource group
even if I explicitly selected a different resource group. After mentioning
this in forums, the image was updated in docker hub to not do this.