Kaydet (Commit) fce9892e authored tarafından Ben Firshman's avatar Ben Firshman Kaydeden (comit) Joffrey F

Add example for tag()

Carrying #1120. Thanks @Faylixe!
Signed-off-by: 's avatarBen Firshman <ben@firshman.co.uk>
üst e814a39e
...@@ -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