adding message option to the import subcommand
Signed-off-by: Taylor Jones <monitorjbl@gmail.com>
This commit is contained in:
parent
a5f2ecff80
commit
f4060b1f65
@ -18,6 +18,7 @@ weight=1
|
|||||||
optionally tag it.
|
optionally tag it.
|
||||||
|
|
||||||
-c, --change=[] Apply specified Dockerfile instructions while importing the image
|
-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
|
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)
|
`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
|
$ 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.
|
Import to docker from a local archive.
|
||||||
|
|
||||||
$ docker import /path/to/exampleimage.tgz
|
$ docker import /path/to/exampleimage.tgz
|
||||||
|
@ -7,6 +7,7 @@ docker-import - Create an empty filesystem image and import the contents of the
|
|||||||
# SYNOPSIS
|
# SYNOPSIS
|
||||||
**docker import**
|
**docker import**
|
||||||
[**-c**|**--change**[= []**]]
|
[**-c**|**--change**[= []**]]
|
||||||
|
[**-m**|**--message**[=*MESSAGE*]]
|
||||||
[**--help**]
|
[**--help**]
|
||||||
file|URL|- [REPOSITORY[:TAG]]
|
file|URL|- [REPOSITORY[:TAG]]
|
||||||
|
|
||||||
@ -15,6 +16,9 @@ file|URL|- [REPOSITORY[:TAG]]
|
|||||||
Apply specified Dockerfile instructions while importing the image
|
Apply specified Dockerfile instructions while importing the image
|
||||||
Supported Dockerfile instructions: `CMD`|`ENTRYPOINT`|`ENV`|`EXPOSE`|`ONBUILD`|`USER`|`VOLUME`|`WORKDIR`
|
Supported Dockerfile instructions: `CMD`|`ENTRYPOINT`|`ENV`|`EXPOSE`|`ONBUILD`|`USER`|`VOLUME`|`WORKDIR`
|
||||||
|
|
||||||
|
**-m**, **--message**=""
|
||||||
|
Set commit message for imported image
|
||||||
|
|
||||||
# DESCRIPTION
|
# DESCRIPTION
|
||||||
Create a new filesystem image from the contents of a tarball (`.tar`,
|
Create a new filesystem image from the contents of a tarball (`.tar`,
|
||||||
`.tar.gz`, `.tgz`, `.bzip`, `.tar.xz`, `.txz`) into it, then optionally tag it.
|
`.tar.gz`, `.tgz`, `.bzip`, `.tar.xz`, `.txz`) into it, then optionally tag it.
|
||||||
@ -35,6 +39,10 @@ Import to docker via pipe and stdin:
|
|||||||
|
|
||||||
# cat exampleimage.tgz | docker import - example/imagelocal
|
# cat exampleimage.tgz | docker import - example/imagelocal
|
||||||
|
|
||||||
|
Import with a commit message
|
||||||
|
|
||||||
|
# cat exampleimage.tgz | docker import --message "New image imported from tarball" - exampleimagelocal:new
|
||||||
|
|
||||||
Import to a Docker image from a local file.
|
Import to a Docker image from a local file.
|
||||||
|
|
||||||
# docker import /path/to/exampleimage.tgz
|
# docker import /path/to/exampleimage.tgz
|
||||||
|
Loading…
x
Reference in New Issue
Block a user