...

/

Chapter Summary: Docker Swarm

Chapter Summary: Docker Swarm

Summary of the concepts covered in this chapter.

We'll cover the following...

Commands

Let's explore all the Docker Swarm commands covered in this chapter:

  • docker swarm init creates a new swarm. The node you run the command on becomes the first manager and the Docker Engine on that node switches into swarm mode.

  • docker swarm join-token reveals the commands and tokens you need to join workers and managers to the swarm. You add manager to the command to get the manager join token and worker to get the worker token. Be sure to keep your join tokens secure!

  • docker node ls lists managers and workers, including which manager is the leader.

  • docker service create creates a new service.

  • docker service ls lists running services and gives basic information on their state and the number of replicas they’re running.

  • docker service ps <service> gives more detailed information about individual service replicas.

  • docker service inspect gives very detailed information on a service. You can add the --pretty flag to get a nicely formatted summary view.

  • docker service scale lets you scale the number of service replicas.

  • docker service update lets you update the properties of a running service.

  • docker service logs shows service logs.

  • docker service rm deletes a service without asking for confirmation.

Access this course and 1400+ top-rated courses and projects.