Article 5AYT2 How to access from docker worker node to service from docker manager node?

How to access from docker worker node to service from docker manager node?

by
burgas
from LinuxQuestions.org on (#5AYT2)
I have created docker swarm add join to it from another docker host. In main swarm host I have full control to any swarm services, network, secrets and so on.
But in joined node (worker swarm) for any attempt as
sudo docker node ls
or
sudo docker service ls
I receive
Error response from daemon: 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.
Why? What going wrong?

And I can not attach from secondary node to swarm as manager, only as worker, of course:

Error response from daemon: manager stopped: can't initialize raft node: rpc error: code = Unknown desc = could not connect to prospective new cluster member using its advertised address: rpc error: code = DeadlineExceeded desc = context deadline exceededlatest?d=yIl2AUoC8zA latest?i=ttTbS6D70io:ftI1cCV0zWo:F7zBnMy latest?i=ttTbS6D70io:ftI1cCV0zWo:V_sGLiP latest?d=qj6IDK7rITs latest?i=ttTbS6D70io:ftI1cCV0zWo:gIN9vFwttTbS6D70io
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments