adding message option to the import subcommand

Signed-off-by: Taylor Jones <monitorjbl@gmail.com>
Upstream-commit: 936b2c6afe490b562df4ebea854b116c3b40a9f5
Component: engine
This commit is contained in:
Taylor Jones
2015-08-20 04:01:50 +00:00
parent 69dbe5953f
commit 15378abfc2
6 changed files with 70 additions and 6 deletions

View File

@ -18,6 +18,7 @@ weight=1
optionally tag it.
-c, --change=[] Apply specified Dockerfile instructions while importing the image
-m, --message= Set commit message for imported image
You can specify a `URL` or `-` (dash) to take data directly from `STDIN`. The
`URL` can point to an archive (.tar, .tar.gz, .tgz, .bzip, .tar.xz, or .txz)
@ -46,6 +47,10 @@ Import to docker via pipe and `STDIN`.
$ cat exampleimage.tgz | docker import - exampleimagelocal:new
Import with a commit message
$ cat exampleimage.tgz | docker import --message "New image imported from tarball" - exampleimagelocal:new
Import to docker from a local archive.
$ docker import /path/to/exampleimage.tgz