Search in sources :

Example 1 with InspectContainerCmd

use of com.github.dockerjava.api.command.InspectContainerCmd in project camel by apache.

the class DockerProducer method executeInspectContainerRequest.

/**
     * Produce a inspect container request
     *
     * @param client
     * @param message
     * @return
     */
private InspectContainerCmd executeInspectContainerRequest(DockerClient client, Message message) {
    LOGGER.debug("Executing Docker Inspect Container Request");
    String containerId = DockerHelper.getProperty(DockerConstants.DOCKER_CONTAINER_ID, configuration, message, String.class);
    ObjectHelper.notNull(containerId, "Container ID must be specified");
    InspectContainerCmd inspectContainerCmd = client.inspectContainerCmd(containerId);
    return inspectContainerCmd;
}
Also used : InspectContainerCmd(com.github.dockerjava.api.command.InspectContainerCmd)

Aggregations

InspectContainerCmd (com.github.dockerjava.api.command.InspectContainerCmd)1