Kaydet (Commit) 115f39e9 authored tarafından Joffrey F's avatar Joffrey F Kaydeden (comit) GitHub

Merge pull request #1316 from bfirsh/add-example-for-tag

Add example for tag()
...@@ -469,6 +469,11 @@ class ImageApiMixin(object): ...@@ -469,6 +469,11 @@ class ImageApiMixin(object):
Raises: Raises:
:py:class:`docker.errors.APIError` :py:class:`docker.errors.APIError`
If the server returns an error. If the server returns an error.
Example:
>>> client.tag('ubuntu', 'localhost:5000/ubuntu', 'latest',
force=True)
""" """
params = { params = {
'tag': tag, 'tag': tag,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment