From a62fb77dd48f7e333de9a1347b943bd65f99641c Mon Sep 17 00:00:00 2001 From: Sven Dowideit Date: Sat, 16 Nov 2013 21:03:52 +1000 Subject: [PATCH] be very explicit about docker insert - it does not insert a file into an IMAGE, it creates a new image that adds only that file to its specified parent Upstream-commit: e288e7763e20d1d8c7b8f5f9fffa00136577ed95 Component: engine --- components/engine/docs/sources/commandline/cli.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/components/engine/docs/sources/commandline/cli.rst b/components/engine/docs/sources/commandline/cli.rst index 9875b5ded9..7f58aacbc5 100644 --- a/components/engine/docs/sources/commandline/cli.rst +++ b/components/engine/docs/sources/commandline/cli.rst @@ -591,6 +591,12 @@ might not get preserved. Insert a file from URL in the IMAGE at PATH +Use the specified IMAGE as the parent for a new image which adds a +:ref:`layer ` containing the new file. ``insert`` does not modify +the original image, and the new image has the contents of the parent image, +plus the new file. + + Examples ~~~~~~~~ @@ -600,6 +606,7 @@ Insert file from github .. code-block:: bash $ sudo docker insert 8283e18b24bc https://raw.github.com/metalivedev/django/master/postinstall /tmp/postinstall.sh + 06fd35556d7b .. _cli_inspect: