use of io.fabric8.maven.docker.config.VolumeConfiguration in project docker-maven-plugin by fabric8io.
the class VolumeCreateMojo method executeInternal.
@Override
protected void executeInternal(ServiceHub serviceHub) throws DockerAccessException, MojoExecutionException {
VolumeService volService = serviceHub.getVolumeService();
for (VolumeConfiguration volume : getVolumes()) {
log.info("Creating volume '%s'", volume.getName());
volService.createVolume(volume);
}
}
Aggregations