From 2b23117c84697d03bea03d770f53e53cad2e679d Mon Sep 17 00:00:00 2001 From: Faylixe Date: Thu, 7 Jul 2016 15:43:59 +0200 Subject: [PATCH] Update api.md Signed-off-by: Faylixe --- docs/api.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/api.md b/docs/api.md index 5b8ef22b4d..9a95d5c30a 100644 --- a/docs/api.md +++ b/docs/api.md @@ -995,6 +995,15 @@ Tag an image into a repository. Identical to the `docker tag` command. **Returns** (bool): True if successful +Here is an example for tagging ``ubuntu`` image in order to push it to a local registry : + +```python +>>> from docker import Client +>>> cli = Client() +>>> cli.tag('ubuntu', 'localhost:5000/ubuntu', 'latest', True) +True +``` + ## top Display the running processes of a container.