Skip to content

Commit

Permalink
Fix volumes low-level documentation examples
Browse files Browse the repository at this point in the history
I realize that low-level documentation has outdated examples, so I
created issue #2800 to fix that

Signed-off-by: Felipe Ruhland <[email protected]>
  • Loading branch information
feliperuhland committed Apr 6, 2021
1 parent 96c1272 commit 4b44fa7
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 4b44fa7

Please sign in to comment.