push image file to registry.
Required parameters
Parameter |
Description |
-image <file> |
the image file path. |
-registry <registry> |
the registry to push image to. |
-targetImage <name>[:<reference>] |
the target image repository of registry to push image to. •<name> the repository of image. • <reference> the image tag or image digest. the default is latest. |
Optional parameters
Parameter |
Description |
-username <username> |
the username to login to the registry. |
-password <password> |
the password to login to the registry. |
-ignoreSslCertificateCheck |
use this switch to ignore the SSL certificate validation. |
-showStackTrace |
use this switch to show stack trace on the console. |
if the register server uses self-signed certificate. You need to add the public certificate to trusted store (cacerts) with the keytool
To import certificates into cacerts:
•Go to the location of the JDK/JRE you’re using, for example C:\Program Files\Java\jdk1.8.0_101\jre\lib\security
•Open a command prompt and type: keytool -import -alias <alias> -keystore <cacerts_file> -trustcacerts -file <certificate_filename>
•When prompted Enter keystore password:, enter "changeit". By default keystores have a password of "changeit"
•When prompted Trust this certificate? [no]:, enter "yes".
•This imports the certificate into the keystore and display the message: "Certificate was added to keystore".