From 4b44fa7e5db98af52fb9269422d05b9aa7e03f5c Mon Sep 17 00:00:00 2001 From: Felipe Ruhland Date: Tue, 6 Apr 2021 20:32:05 +0200 Subject: [PATCH] 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 --- docker/api/volume.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/api/volume.py b/docker/api/volume.py index 900a6086b..9604554a3 100644 --- a/docker/api/volume.py +++ b/docker/api/volume.py @@ -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'}, @@ -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) @@ -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'}