Package com.github.dockerjava.api.command

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


       
        LOGGER.debug("Executing Docker Remove Container Request");
       
        String containerId = DockerHelper.getProperty(DockerConstants.DOCKER_CONTAINER_ID, configuration, message, String.class);

        RemoveContainerCmd removeContainerCmd = client.removeContainerCmd(containerId);

        Boolean force = DockerHelper.getProperty(DockerConstants.DOCKER_FORCE, configuration, message, Boolean.class);
       
        if (force != null && force) {
            removeContainerCmd.withForce(force);
        }
       
        Boolean removeVolumes = DockerHelper.getProperty(DockerConstants.DOCKER_REMOVE_VOLUMES, configuration, message, Boolean.class);
       
        if (removeVolumes != null && removeVolumes) {
            removeContainerCmd.withRemoveVolumes(removeVolumes);
        }
       
        return removeContainerCmd;

    }
View Full Code Here

TOP

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

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.