Bootstrap FreeKB - Docker - docker swarm init command
Docker - docker swarm init command

Updated:   |  Docker articles

This assumes you have installed Docker on Linux and the Docker is running. The docker swarm init command is used to initialize Docker Swarm.

docker swarm init

 

The docker swarm init command should return the following output.

Swarm initialized: current node (i9m11i1q147k8x09khye6ip8b) is now a manager.

 To add a worker to this swarm, run the following command:

     docker swarm join \
     --token SWMTKN-1-61s10q7nisntaqdqj13z9sjutvvew2kpfc3wpc50zqtr9bhj5k-6ppeqc2x9gt1sf6hi80b9wch5 \ 
     192.168.0.15:2377

 To add a manager to this swarm, run 'docker swarm join-token manager' and follow the instructions.

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter ee41e6 in the box below so that we can be sure you are a human.