Skip to content

Commit

Permalink
Merge pull request #2806 from feliperuhland/fix-low-level-volumes-exa…
Browse files Browse the repository at this point in the history
…mple

Fix volumes low-level documentation examples
  • Loading branch information
aiordache committed Oct 7, 2021
2 parents fcb35f4 + 4b44fa7 commit 7172269
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docker/api/volume.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def volumes(self, filters=None):
Example:
>>> cli.volumes()
>>> client.api.volumes()
{u'Volumes': [{u'Driver': u'local',
u'Mountpoint': u'/var/lib/docker/volumes/foobar/_data',
u'Name': u'foobar'},
Expand Down Expand Up @@ -56,7 +56,7 @@ def create_volume(self, name=None, driver=None, driver_opts=None,
Example:
>>> volume = cli.create_volume(name='foobar', driver='local',
>>> volume = client.api.create_volume(name='foobar', driver='local',
driver_opts={'foo': 'bar', 'baz': 'false'},
labels={"key": "value"})
>>> print(volume)
Expand Down Expand Up @@ -104,7 +104,7 @@ def inspect_volume(self, name):
Example:
>>> cli.inspect_volume('foobar')
>>> client.api.inspect_volume('foobar')
{u'Driver': u'local',
u'Mountpoint': u'/var/lib/docker/volumes/foobar/_data',
u'Name': u'foobar'}
Expand Down

0 comments on commit 7172269

Please sign in to comment.