Skip to content

Commit

Permalink
Merge pull request #2878 from sina-rostami/master
Browse files Browse the repository at this point in the history
Improve containers documentation
  • Loading branch information
aiordache authored Sep 1, 2021
2 parents d06db4d + 2fa5687 commit 264688e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docker/models/containers.py
Original file line number Diff line number Diff line change
Expand Up @@ -761,6 +761,14 @@ def run(self, image, command=None, stdout=True, stderr=False,
{'/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.
Expand Down

0 comments on commit 264688e

Please sign in to comment.