diff options
author | Felipe Ruhland <felipe.ruhland@gmail.com> | 2021-04-06 20:32:05 +0200 |
---|---|---|
committer | Felipe Ruhland <felipe.ruhland@gmail.com> | 2021-04-06 20:32:05 +0200 |
commit | 4b44fa7e5db98af52fb9269422d05b9aa7e03f5c (patch) | |
tree | 82d97472f0386619cb9d403e8dc59d86532bf0e8 | |
parent | 96c12726fdb9b24e985b4de74d5c82145ccd8185 (diff) | |
download | docker-py-4b44fa7e5db98af52fb9269422d05b9aa7e03f5c.tar.gz |
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 <felipe.ruhland@gmail.com>
-rw-r--r-- | docker/api/volume.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docker/api/volume.py b/docker/api/volume.py index 900a608..9604554 100644 --- a/docker/api/volume.py +++ b/docker/api/volume.py @@ -21,7 +21,7 @@ class VolumeApiMixin(object): 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 @@ class VolumeApiMixin(object): 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 @@ class VolumeApiMixin(object): 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'} |