Package com.github.dockerjava.api.command

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


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

        String signal = DockerHelper.getProperty(DockerConstants.DOCKER_SIGNAL, configuration, message, String.class);
       
        if (signal != null) {
            killContainerCmd.withSignal(signal);
        }
            
        return killContainerCmd;

    }
View Full Code Here

TOP

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

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.