Interface MiscApi


  • @Consumes("application/json")
    @Path("/v{jclouds.api-version}")
    public interface MiscApi
    • Method Detail

      • getVersion

        @Named("version")
        @GET
        @Path("/version")
        Version getVersion()
        Get the information of the current docker version.
        Returns:
        The information of the current docker version.
      • getInfo

        @Named("info")
        @GET
        @Path("/info")
        Info getInfo()
        Get the information of the current docker version.
        Returns:
        The information of the current docker version.
      • build

        @Named("image:build")
        @POST
        @Path("/build")
        InputStream build​(Payload inputStream)
        Build an image from Dockerfile via stdin
        Parameters:
        inputStream - The stream must be a tar archive compressed with one of the following algorithms: identity (no compression), gzip, bzip2, xz.
        Returns:
        a stream of the build execution
      • build

        @Named("image:build")
        @POST
        @Path("/build")
        InputStream build​(Payload inputStream,
                          BuildOptions options)
        Build an image from Dockerfile via stdin
        Parameters:
        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)
        Returns:
        a stream of the build execution
      • execCreate

        @Named("container:exec")
        @POST
        @Path("/containers/{id}/exec")
        Exec execCreate​(@PathParam("id")
                        String containerId,
                        ExecCreateParams execCreateParams)
        Sets up an exec instance in a running container with given Id.
        Parameters:
        containerId - container Id
        execCreateParams - exec parameters
        Returns:
        an instance which holds exec identifier
      • execInspect

        @Named("exec:inspect")
        @GET
        @Path("/exec/{id}/json")
        ExecInspect execInspect​(@PathParam("id")
                                String execId)
        Returns low-level information about the exec command id.
        Parameters:
        execId - exec instance id
        Returns:
        details about exec instance