You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Camel Docker component

Available as of Camel 2.15

Camel component for communicating with Docker.

The Docker Camel component leverages the docker-java via the Docker Remote API.

Maven users will need to add the following dependency to their pom.xml for this component:

<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-docker</artifactId>
    <version>x.x.x</version>
    <!-- use the same version as your Camel core version -->
</dependency>

URI format

dropbox://[operation]?[options]

Where operation is the specific action to perform on Docker.

Header Strategy

All URI option can be passed as Header properties. Values found in a message header take precedence over URI parameters. A header property takes the form of a URI option prefixed with *CamelDocker* as shown below

URI OptionHeader Property
containerIdCamelDockerContainerId

General Options

The following parameters can be used with any invocation of the component

OptionHeaderDescriptionDefault Value
hostCamelDockerHostMandatory: Docker host localhost
portCamelDockerPortMandatory: Docker port5000
usernameCamelDockerUserNameUser name to authenticate with 
passwordCamelDockerPasswordPassword to authenticate with 
emailCamelDockerEmailEmail address associated with the user 
secureCamelDockerSecureUse HTTPS communication false
requestTimeoutCamelDockerRequestTimeoutRequest timeout for response (in seconds)30

Consumer Operations

The consumer supports the following operations.

OperationOptionsDescriptionProduces
eventsinitialRangeMonitor Docker events (Streaming)Event

Producer Operations

The following producer operations are available.

Misc OperationOptionsDescriptionReturns
auth Check auth configuration 
info System wide informationInfo
ping Ping the Docker server 
version Show the docker version informationVersion
Image OperationOptionsDescriptionBody ContentReturns
image/listfilter, showAllList images List<Image>
image/createrepositoryCreate an imageInputStreamCreateImageResponse
     

 

 

 

 

 

 

 

  • No labels