Skip to content

Commit 4b44fa7

Browse files
committed
Fix volumes low-level documentation examples
I realize that low-level documentation has outdated examples, so I created issue #2800 to fix that Signed-off-by: Felipe Ruhland <[email protected]>
1 parent 96c1272 commit 4b44fa7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docker/api/volume.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def volumes(self, filters=None):
2121
2222
Example:
2323
24-
>>> cli.volumes()
24+
>>> client.api.volumes()
2525
{u'Volumes': [{u'Driver': u'local',
2626
u'Mountpoint': u'/var/lib/docker/volumes/foobar/_data',
2727
u'Name': u'foobar'},
@@ -56,7 +56,7 @@ def create_volume(self, name=None, driver=None, driver_opts=None,
5656
5757
Example:
5858
59-
>>> volume = cli.create_volume(name='foobar', driver='local',
59+
>>> volume = client.api.create_volume(name='foobar', driver='local',
6060
driver_opts={'foo': 'bar', 'baz': 'false'},
6161
labels={"key": "value"})
6262
>>> print(volume)
@@ -104,7 +104,7 @@ def inspect_volume(self, name):
104104
105105
Example:
106106
107-
>>> cli.inspect_volume('foobar')
107+
>>> client.api.inspect_volume('foobar')
108108
{u'Driver': u'local',
109109
u'Mountpoint': u'/var/lib/docker/volumes/foobar/_data',
110110
u'Name': u'foobar'}

0 commit comments

Comments
 (0)