Merge pull request #2806 from feliperuhland/fix-low-level-volumes-example

Fix volumes low-level documentation examples
This commit is contained in:
Anca Iordache 2021-10-08 00:05:55 +02:00 committed by GitHub
commit 7172269b06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@ class VolumeApiMixin:
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:
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:
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'}