Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Image OperationOptionsDescriptionBody ContentReturns
image/listfilter, showAllList images List<Image>
image/createrepositoryCreate an imageInputStreamCreateImageResponse
 image/buildnoCache, quiet, remove, tagBuild an image from Dockerfile via stdinInputStream or FileInputStream
image/pullrepository, registry, tagPull an image from the registry  InputStream
image/pushnamePush an image on the registry InputStream
image/searchtermSearch for images List<SearchItem>
image/removeimageIdRemove an image  
 image/tag imageId, repository, tag, forceTag an image into a repository  
image/inspectimageIdInspect an image InspectImageResponse
Container OperationOptionsDescriptionBody ContentReturns
container/listshowSize, showAll, before, since, limit, List containersinitialRange List<Container>
container/createimageId, name, exposedPorts, workingDir, disableNetwork, hostname,
user, tty, stdInOpen, stdInOnce, memoryLimit, memorySwap, cpuShares,
attachStdIn, attachStdOut, attachStdErr, env, cmd, dns, image, volumes,
volumesFrom
Create a container  CreateContainerResponse
 container/start

containerId, binds, links, lxcConf, portBindings, privileged, publishAllPorts,
dns, dnsSearch, volumesFrom, networkMode, devices, restartPolicy,
capAdd, capDrop

Start a container  
 container/inspectcontainerIdInspect a container  InspectContainerResponse
 container/waitcontainerIdWait a containerInteger 
container/logcontainerId, stdOut, stdErr, timestamps, followStream, tailAll, tailGet container logs  InputStream
container/attachcontainerId, stdOut, stdErr, timestamps, logs, followStreamAttach to a container InputStream
container/stopcontainerId, timeoutStop a container  
container/restartcontainerId, timeoutRestart a container  
container/diffcontainerIdInspect changes on a container ChangeLog
container/killcontainerId, signalKill a container  
container/topcontainerId, psArgsList processes running in a container TopContainerResponse
container/pausecontainerIdPause a container  
container/unpausecontainerIdUnpause a container  
container/commitcontainerId, repository, message, tag, attachStdIn, attachStdOut, attachStdErr,
cmd, disableNetwork, pause, env, exposedPorts, hostname, memory, memorySwap,
openStdIn, portSpecs, stdInOnce, tty, user, volumes, hostname
Create a new image from a container's changesString 
container/copyfilecontainerId, resource, hostPathCopy files or folders from a containerInputStream 
container/removecontainerId, force, removeVolumes Remove a container  

 

Examples

The following example consumes events from Docker:

Code Block
from("docker://events?host=192.168.59.103&port=2375").to("log:event");

 

The following example queries Docker for system wide information

Code Block
from("docker://info?host=192.168.59.103&port=2375").to("log:info");