Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 754 Bytes

swarm.rst

File metadata and controls

26 lines (18 loc) · 754 Bytes

Swarm

.. py:module:: docker.models.swarm

Manage Docker Engine's swarm mode.

To use any swarm methods, you first need to make the Engine part of a swarm. This can be done by either initializing a new swarm with :py:meth:`~Swarm.init`, or joining an existing swarm with :py:meth:`~Swarm.join`.

These methods are available on client.swarm:

.. rst-class:: hide-signature
.. py:class:: Swarm

  .. automethod:: get_unlock_key()
  .. automethod:: init()
  .. automethod:: join()
  .. automethod:: leave()
  .. automethod:: unlock()
  .. automethod:: update()
  .. automethod:: reload()

  .. autoattribute:: version
  .. py:attribute:: attrs

    The raw representation of this object from the server.