• +91 9723535972
  • info@interviewmaterial.com

DevOps Interview Questions and Answers

Question - What are the commands used to create a Docker swarm?

Answer -

  • Create a swarm where you want to run your manager node.

  • Docker swarm init --advertise-addr  
  • Once you've created a swarm on your manager node, you can add worker nodes to your swarm.
  • When a node is initialized as a manager, it immediately creates a token. In order to create a worker node, the following command (token) should be executed on the host machine of a worker node.

docker swarm join \ --token SWMTKN-1-49nj1cmql0jkz5s954yi3oex3nedyz0fb0xx14ie39trti4wxv-8vxv8rssmk743ojnwacrr2e7c \ 192.168.99.100:2377

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners