I have created container environment in Azure. However, while running
docker node ls, it is only showing LEADER node. but not showing agent node here.
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.Sign up to join this community
When you run the command to create a swarm, the Docker Engine starts running in swarm mode.
docker swarm init to create a single-node swarm on the current node. The Engine sets up the swarm as follows:
Activeavailability, meaning it can receive tasks from the scheduler.
ingressfor publishing service ports external to the swarm.
docker swarm initprovides the connection command to use when you join new worker nodes to the swarm:
For more information see Join a worker node
Once a worker node has joined the swarm docker
docker node ls should give you the list of nodes joined to the swarm. [Reference]