From 2fa56879a2f978387d230db087003d79eb2762d0 Mon Sep 17 00:00:00 2001 From: sinarostami Date: Mon, 16 Aug 2021 00:06:45 +0430 Subject: Improve containers documentation Signed-off-by: sinarostami --- docker/models/containers.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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. -- cgit v1.2.1