File tree Expand file tree Collapse file tree
docs/reference/commandline Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -89,6 +89,19 @@ and sets the `DEBUG` environment-variable in the resulting image:
8989$ docker import --change " ENV DEBUG=true" ./rootfs.tgz exampleimagedir
9090```
9191
92+ The ` --change ` option can be set multiple times to apply multiple ` Dockerfile `
93+ instructions. The example below sets the ` LABEL1 ` and ` LABEL2 ` labels on
94+ the imported image, in addition to the ` DEBUG ` environment variable from
95+ the previous example:
96+
97+ ``` console
98+ $ docker import \
99+ --change "ENV DEBUG=true" \
100+ --change "LABEL LABEL1=hello" \
101+ --change "LABEL LABEL2=world" \
102+ ./rootfs.tgz exampleimagedir
103+ ```
104+
92105### <a name =" message " ></a > Import with a commit message (-m, --message)
93106
94107The ` --message ` (or ` -m ` ) option allows you to set a custom comment in
You can’t perform that action at this time.
0 commit comments