Package com.github.dockerjava.api.command

Examples of com.github.dockerjava.api.command.RemoveImageCmd


        LOGGER.debug("Executing Docker Remove Image Request");
       
        String imageId = DockerHelper.getProperty(DockerConstants.DOCKER_IMAGE_ID, configuration, message, String.class);
       
        RemoveImageCmd removeImagesCmd = client.removeImageCmd(imageId);
       
        Boolean force = DockerHelper.getProperty(DockerConstants.DOCKER_FORCE, configuration, message, Boolean.class);
       
        if (force != null && force) {
            removeImagesCmd.withForce();
        }
       
        Boolean prune = DockerHelper.getProperty(DockerConstants.DOCKER_NO_PRUNE, configuration, message, Boolean.class);
       
        if (prune != null && prune) {
            removeImagesCmd.withNoPrune();
        }
       
        return removeImagesCmd;

    }
View Full Code Here

TOP

Related Classes of com.github.dockerjava.api.command.RemoveImageCmd

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.