if (actualImage != null) {
containerConfig.setImage(actualImage);
if (customImagePush) {
LOG.info("Pushing image to repository " + newImageName + " actualImage: " + actualImage);
Auth authConfig = new Auth();
authConfig.setEmail("person@fabric8.io");
authConfig.setUsername(service.getZooKeeperUser());
authConfig.setPassword(service.getZookeeperPassword());
try {
docker.imagePush(newImageName, "latest", authConfig);
LOG.info("Image pushed to repository " + newImageName);
} catch (Exception e) {
LOG.info("Failed to push image " + newImageName + ": " + e + Dockers.dockerErrorMessage(e), e);