File size: 920 Bytes
065fee7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Client
======
.. py:module:: docker.client


Creating a client
-----------------

To communicate with the Docker daemon, you first need to instantiate a client. The easiest way to do that is by calling the function :py:func:`~docker.client.from_env`. It can also be configured manually by instantiating a :py:class:`~docker.client.DockerClient` class.

.. autofunction:: from_env()

Client reference
----------------

.. autoclass:: DockerClient()

  .. autoattribute:: configs
  .. autoattribute:: containers
  .. autoattribute:: images
  .. autoattribute:: networks
  .. autoattribute:: nodes
  .. autoattribute:: plugins
  .. autoattribute:: secrets
  .. autoattribute:: services
  .. autoattribute:: swarm
  .. autoattribute:: volumes

  .. automethod:: close()
  .. automethod:: df()
  .. automethod:: events()
  .. automethod:: info()
  .. automethod:: login()
  .. automethod:: ping()
  .. automethod:: version()