Package com.github.dockerjava.api.command

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


        LOGGER.debug("Executing Docker Copy File/Folder Container Request");
       
        String containerId = DockerHelper.getProperty(DockerConstants.DOCKER_CONTAINER_ID, configuration, message, String.class);
        String resource = DockerHelper.getProperty(DockerConstants.DOCKER_RESOURCE, configuration, message, String.class);

        CopyFileFromContainerCmd copyFileContainerCmd = client.copyFileFromContainerCmd(containerId, resource);

        String hostPath = DockerHelper.getProperty(DockerConstants.DOCKER_HOST_PATH, configuration, message, String.class);
       
        if (hostPath != null) {
            copyFileContainerCmd.withHostPath(hostPath);
        }
            
        return copyFileContainerCmd;

    }
View Full Code Here

TOP

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

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.