Create base image from docker file.
If -dockerFile is not used, the default dockerfile will be used.
|
The docker engine must be running. |
Required parameters
Parameter |
Description |
-targetPath <directory> |
the directory of output image |
-targetImage <image> |
the name of output image the name of output image can be input in the format <image name>[:<tag>] •<image name> the name of image. •<tag> the image tag |
Optional parameters
Parameter |
Description |
-dockerFile <file> |
the path of docker file |
-architecture [arm|x86] |
defines the architecture of dockerfile that is used to create base image. The default is x86 |
-showStackTrace |
use this switch to show stack trace on the console. |
Batch mode
The batch mode is started, if the start script is launched with additional arguments.
|
Execution will be stopped if any required parameter is missing. |
Example |
Here we are executing the update image in batch mode.
./imagecomplier.sh
> createBaseImage -dockerFile <docker file> -targetPath <output directory> -targetImage <name>[:<tag>]
|