@Consumes(value="application/json")
@Path(value="/v{jclouds.api-version}")
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") @GET @Path(value="/version") Version getVersion()
@Named(value="info") @GET @Path(value="/info") Info getInfo()
@Named(value="image:build") @POST @Path(value="/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") @POST @Path(value="/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") @POST @Path(value="/containers/{id}/exec") Exec execCreate(@PathParam(value="id") String containerId, ExecCreateParams execCreateParams)
containerId
- container IdexecCreateParams
- exec parameters@Named(value="exec:start") @POST @Path(value="/exec/{id}/start") InputStream execStart(@PathParam(value="id") 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") @GET @Path(value="/exec/{id}/json") ExecInspect execInspect(@PathParam(value="id") String execId)
execId
- exec instance idCopyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.