public interface MiscApi
Modifier and Type | Method and Description |
---|---|
InputStream |
build(Payload inputStream)
Build an image from Dockerfile via stdin
|
InputStream |
build(Payload inputStream,
BuildOptions options)
Build an image from Dockerfile via stdin
|
Exec |
execCreate(String containerId,
ExecCreateParams execCreateParams)
Sets up an exec instance in a running container with given Id.
|
ExecInspect |
execInspect(String execId)
Returns low-level information about the exec command id.
|
InputStream |
execStart(String execId,
ExecStartParams execStartParams)
Starts a previously set up exec instance id.
|
Info |
getInfo()
Get the information of the current docker version.
|
Version |
getVersion()
Get the information of the current docker version.
|
@Named(value="version") Version getVersion()
@Named(value="info") Info getInfo()
@Named(value="image:build") InputStream build(Payload inputStream)
inputStream
- The stream must be a tar archive compressed with one of the following algorithms: identity
(no compression), gzip, bzip2, xz.@Named(value="image:build") InputStream build(Payload inputStream, BuildOptions options)
inputStream
- The stream must be a tar archive compressed with one of the following algorithms: identity
(no compression), gzip, bzip2, xz.options
- the image build's options (@see BuildOptions)@Named(value="container:exec") Exec execCreate(String containerId, ExecCreateParams execCreateParams)
containerId
- container IdexecCreateParams
- exec parameters@Named(value="exec:start") InputStream execStart(String execId, ExecStartParams execStartParams)
ExecStartParams.detach()
is true, this API returns after starting
the exec command. Otherwise, this API sets up an interactive session with
the exec command.execId
- exec instance idexecStartParams
- start parametersDockerInputStream
execCreate(String, ExecCreateParams)
,
DockerInputStream
@Named(value="exec:inspect") ExecInspect execInspect(String execId)
execId
- exec instance idCopyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.