diff options
author | sinarostami <Sinarostami4188.1@gmail.com> | 2021-08-16 00:06:45 +0430 |
---|---|---|
committer | sinarostami <Sinarostami4188.1@gmail.com> | 2021-08-16 00:24:12 +0430 |
commit | 2fa56879a2f978387d230db087003d79eb2762d0 (patch) | |
tree | 938c6f99a4719c6f2682bf8a234495ff4f873c6d | |
parent | 1abeb46dfa1dbe89e384652ef81e57def0b2e285 (diff) | |
download | docker-py-2fa56879a2f978387d230db087003d79eb2762d0.tar.gz |
Improve containers documentation
Signed-off-by: sinarostami <Sinarostami4188.1@gmail.com>
-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. |