Skip to content

Commit 2fa5687

Browse files
committed
Improve containers documentation
Signed-off-by: sinarostami <[email protected]>
1 parent 1abeb46 commit 2fa5687

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docker/models/containers.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,14 @@ def run(self, image, command=None, stdout=True, stderr=False,
761761
{'/home/user1/': {'bind': '/mnt/vol2', 'mode': 'rw'},
762762
'/var/www': {'bind': '/mnt/vol1', 'mode': 'ro'}}
763763
764+
Or a list of strings which each one of its elements specifies a mount volume.
765+
766+
For example:
767+
768+
.. code-block:: python
769+
770+
['/home/user1/:/mnt/vol2','/var/www:/mnt/vol1']
771+
764772
volumes_from (:py:class:`list`): List of container names or IDs to
765773
get volumes from.
766774
working_dir (str): Path to the working directory.

0 commit comments

Comments
 (0)