diff options
author | Anca Iordache <aiordache@users.noreply.github.com> | 2021-09-01 18:55:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-01 18:55:38 +0200 |
commit | 264688e37c9496496807edfd305aea60b57e1adf (patch) | |
tree | 6a8a6166bf6c5f1b7ab4fd5de1137f3503fb6a6b | |
parent | d06db4d9e133d0f427a29d8abdfff44733697066 (diff) | |
parent | 2fa56879a2f978387d230db087003d79eb2762d0 (diff) | |
download | docker-py-264688e37c9496496807edfd305aea60b57e1adf.tar.gz |
Merge pull request #2878 from sina-rostami/master
Improve containers documentation
-rw-r--r-- | docker/models/containers.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/docker/models/containers.py b/docker/models/containers.py index 36cbbc4..957deed 100644 --- a/docker/models/containers.py +++ b/docker/models/containers.py @@ -761,6 +761,14 @@ class ContainerCollection(Collection): {'/home/user1/': {'bind': '/mnt/vol2', 'mode': 'rw'}, '/var/www': {'bind': '/mnt/vol1', 'mode': 'ro'}} + Or a list of strings which each one of its elements specifies a mount volume. + + For example: + + .. code-block:: python + + ['/home/user1/:/mnt/vol2','/var/www:/mnt/vol1'] + volumes_from (:py:class:`list`): List of container names or IDs to get volumes from. working_dir (str): Path to the working directory. |