public class RegistryService extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
RegistryService.RegistryConfig |
| Modifier and Type | Method and Description |
|---|---|
void |
checkImageWithAutoPull(String image,
String registry,
boolean autoPullAlwaysAllowed,
RegistryService.RegistryConfig registryConfig)
Check an image, and, if
autoPull is set to true, fetch it. |
void |
pushImages(Collection<ImageConfiguration> imageConfigs,
String pushRegistry,
int retries,
RegistryService.RegistryConfig registryConfig) |
public void pushImages(Collection<ImageConfiguration> imageConfigs, String pushRegistry, int retries, RegistryService.RegistryConfig registryConfig) throws DockerAccessException, org.apache.maven.plugin.MojoExecutionException
DockerAccessExceptionorg.apache.maven.plugin.MojoExecutionExceptionpublic void checkImageWithAutoPull(String image, String registry, boolean autoPullAlwaysAllowed, RegistryService.RegistryConfig registryConfig) throws DockerAccessException, org.apache.maven.plugin.MojoExecutionException
autoPull is set to true, fetch it. Otherwise if the image
is not existent, throw an errorimage - image nameregistry - optional registry which is used if the image itself doesn't have a registry.autoPullAlwaysAllowed - whether an unconditional autopull is allowed.DockerAccessExceptionorg.apache.maven.plugin.MojoExecutionExceptionCopyright © 2017. All rights reserved.