From e657c7a1422ff415b334abee962375b4f8e7f376 Mon Sep 17 00:00:00 2001 From: miaohb Date: Thu, 28 Sep 2017 04:22:46 -0700 Subject: [PATCH] Add example for container commit This patch adds missing example for container commit. Change-Id: Iac31e55882b66258aa201b17718d9889834b7766 Depends-on: I250b743d8adc6cd6b41039bb3431eff35c4c030c --- api-ref/source/containers.inc | 8 +++++++- api-ref/source/samples/container-commit-resp.json | 3 +++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 api-ref/source/samples/container-commit-resp.json diff --git a/api-ref/source/containers.inc b/api-ref/source/containers.inc index 8589b0194..646ad0e43 100644 --- a/api-ref/source/containers.inc +++ b/api-ref/source/containers.inc @@ -665,7 +665,7 @@ Commit a container .. rest_method:: POST /v1/containers/{container_ident}/commit?tag={tag}&repository={repository} -Create a new image from a container's changes +Create a new image from a container's changes. Response Codes -------------- @@ -697,6 +697,12 @@ Response - image: image +Response Example +---------------- + +.. literalinclude:: samples/container-commit-resp.json + :language: javascript + Detach a network from a container ================================= diff --git a/api-ref/source/samples/container-commit-resp.json b/api-ref/source/samples/container-commit-resp.json new file mode 100644 index 000000000..4c83fb3ae --- /dev/null +++ b/api-ref/source/samples/container-commit-resp.json @@ -0,0 +1,3 @@ +{ + "uuid": "64281d85-e9a3-4c54-8d30-9ee72a596d8a" +}