Class DefaultDockerClient

  • All Implemented Interfaces:
    com.github.dockerjava.api.DockerClient, Closeable, AutoCloseable

    public class DefaultDockerClient
    extends Object
    implements com.github.dockerjava.api.DockerClient
    • Constructor Detail

      • DefaultDockerClient

        public DefaultDockerClient​(String string)
    • Method Detail

      • authConfig

        public com.github.dockerjava.api.model.AuthConfig authConfig()
                                                              throws com.github.dockerjava.api.exception.DockerException
        Specified by:
        authConfig in interface com.github.dockerjava.api.DockerClient
        Throws:
        com.github.dockerjava.api.exception.DockerException
      • authCmd

        public com.github.dockerjava.api.command.AuthCmd authCmd()
        Specified by:
        authCmd in interface com.github.dockerjava.api.DockerClient
      • infoCmd

        public com.github.dockerjava.api.command.InfoCmd infoCmd()
        Specified by:
        infoCmd in interface com.github.dockerjava.api.DockerClient
      • pingCmd

        public com.github.dockerjava.api.command.PingCmd pingCmd()
        Specified by:
        pingCmd in interface com.github.dockerjava.api.DockerClient
      • versionCmd

        public com.github.dockerjava.api.command.VersionCmd versionCmd()
        Specified by:
        versionCmd in interface com.github.dockerjava.api.DockerClient
      • pullImageCmd

        public com.github.dockerjava.api.command.PullImageCmd pullImageCmd​(String repository)
        Specified by:
        pullImageCmd in interface com.github.dockerjava.api.DockerClient
      • pushImageCmd

        public com.github.dockerjava.api.command.PushImageCmd pushImageCmd​(String name)
        Specified by:
        pushImageCmd in interface com.github.dockerjava.api.DockerClient
      • pushImageCmd

        public com.github.dockerjava.api.command.PushImageCmd pushImageCmd​(com.github.dockerjava.api.model.Identifier identifier)
        Specified by:
        pushImageCmd in interface com.github.dockerjava.api.DockerClient
      • createImageCmd

        public com.github.dockerjava.api.command.CreateImageCmd createImageCmd​(String repository,
                                                                               InputStream imageStream)
        Specified by:
        createImageCmd in interface com.github.dockerjava.api.DockerClient
      • loadImageCmd

        public com.github.dockerjava.api.command.LoadImageCmd loadImageCmd​(InputStream imageStream)
        Specified by:
        loadImageCmd in interface com.github.dockerjava.api.DockerClient
      • searchImagesCmd

        public com.github.dockerjava.api.command.SearchImagesCmd searchImagesCmd​(String term)
        Specified by:
        searchImagesCmd in interface com.github.dockerjava.api.DockerClient
      • removeImageCmd

        public com.github.dockerjava.api.command.RemoveImageCmd removeImageCmd​(String imageId)
        Specified by:
        removeImageCmd in interface com.github.dockerjava.api.DockerClient
      • listImagesCmd

        public com.github.dockerjava.api.command.ListImagesCmd listImagesCmd()
        Specified by:
        listImagesCmd in interface com.github.dockerjava.api.DockerClient
      • inspectImageCmd

        public com.github.dockerjava.api.command.InspectImageCmd inspectImageCmd​(String imageId)
        Specified by:
        inspectImageCmd in interface com.github.dockerjava.api.DockerClient
      • saveImageCmd

        public com.github.dockerjava.api.command.SaveImageCmd saveImageCmd​(String name)
        Specified by:
        saveImageCmd in interface com.github.dockerjava.api.DockerClient
      • listContainersCmd

        public com.github.dockerjava.api.command.ListContainersCmd listContainersCmd()
        Specified by:
        listContainersCmd in interface com.github.dockerjava.api.DockerClient
      • createContainerCmd

        public com.github.dockerjava.api.command.CreateContainerCmd createContainerCmd​(String image)
        Specified by:
        createContainerCmd in interface com.github.dockerjava.api.DockerClient
      • startContainerCmd

        public com.github.dockerjava.api.command.StartContainerCmd startContainerCmd​(String containerId)
        Specified by:
        startContainerCmd in interface com.github.dockerjava.api.DockerClient
      • execCreateCmd

        public com.github.dockerjava.api.command.ExecCreateCmd execCreateCmd​(String containerId)
        Specified by:
        execCreateCmd in interface com.github.dockerjava.api.DockerClient
      • inspectContainerCmd

        public com.github.dockerjava.api.command.InspectContainerCmd inspectContainerCmd​(String containerId)
        Specified by:
        inspectContainerCmd in interface com.github.dockerjava.api.DockerClient
      • removeContainerCmd

        public com.github.dockerjava.api.command.RemoveContainerCmd removeContainerCmd​(String containerId)
        Specified by:
        removeContainerCmd in interface com.github.dockerjava.api.DockerClient
      • waitContainerCmd

        public com.github.dockerjava.api.command.WaitContainerCmd waitContainerCmd​(String containerId)
        Specified by:
        waitContainerCmd in interface com.github.dockerjava.api.DockerClient
      • attachContainerCmd

        public com.github.dockerjava.api.command.AttachContainerCmd attachContainerCmd​(String containerId)
        Specified by:
        attachContainerCmd in interface com.github.dockerjava.api.DockerClient
      • execStartCmd

        public com.github.dockerjava.api.command.ExecStartCmd execStartCmd​(String execId)
        Specified by:
        execStartCmd in interface com.github.dockerjava.api.DockerClient
      • inspectExecCmd

        public com.github.dockerjava.api.command.InspectExecCmd inspectExecCmd​(String execId)
        Specified by:
        inspectExecCmd in interface com.github.dockerjava.api.DockerClient
      • logContainerCmd

        public com.github.dockerjava.api.command.LogContainerCmd logContainerCmd​(String containerId)
        Specified by:
        logContainerCmd in interface com.github.dockerjava.api.DockerClient
      • copyArchiveFromContainerCmd

        public com.github.dockerjava.api.command.CopyArchiveFromContainerCmd copyArchiveFromContainerCmd​(String containerId,
                                                                                                         String resource)
        Specified by:
        copyArchiveFromContainerCmd in interface com.github.dockerjava.api.DockerClient
      • copyFileFromContainerCmd

        public com.github.dockerjava.api.command.CopyFileFromContainerCmd copyFileFromContainerCmd​(String containerId,
                                                                                                   String resource)
        Specified by:
        copyFileFromContainerCmd in interface com.github.dockerjava.api.DockerClient
      • copyArchiveToContainerCmd

        public com.github.dockerjava.api.command.CopyArchiveToContainerCmd copyArchiveToContainerCmd​(String containerId)
        Specified by:
        copyArchiveToContainerCmd in interface com.github.dockerjava.api.DockerClient
      • containerDiffCmd

        public com.github.dockerjava.api.command.ContainerDiffCmd containerDiffCmd​(String containerId)
        Specified by:
        containerDiffCmd in interface com.github.dockerjava.api.DockerClient
      • stopContainerCmd

        public com.github.dockerjava.api.command.StopContainerCmd stopContainerCmd​(String containerId)
        Specified by:
        stopContainerCmd in interface com.github.dockerjava.api.DockerClient
      • killContainerCmd

        public com.github.dockerjava.api.command.KillContainerCmd killContainerCmd​(String containerId)
        Specified by:
        killContainerCmd in interface com.github.dockerjava.api.DockerClient
      • updateContainerCmd

        public com.github.dockerjava.api.command.UpdateContainerCmd updateContainerCmd​(String containerId)
        Specified by:
        updateContainerCmd in interface com.github.dockerjava.api.DockerClient
      • renameContainerCmd

        public com.github.dockerjava.api.command.RenameContainerCmd renameContainerCmd​(String containerId)
        Specified by:
        renameContainerCmd in interface com.github.dockerjava.api.DockerClient
      • restartContainerCmd

        public com.github.dockerjava.api.command.RestartContainerCmd restartContainerCmd​(String containerId)
        Specified by:
        restartContainerCmd in interface com.github.dockerjava.api.DockerClient
      • commitCmd

        public com.github.dockerjava.api.command.CommitCmd commitCmd​(String containerId)
        Specified by:
        commitCmd in interface com.github.dockerjava.api.DockerClient
      • buildImageCmd

        public com.github.dockerjava.api.command.BuildImageCmd buildImageCmd()
        Specified by:
        buildImageCmd in interface com.github.dockerjava.api.DockerClient
      • buildImageCmd

        public com.github.dockerjava.api.command.BuildImageCmd buildImageCmd​(File dockerFileOrFolder)
        Specified by:
        buildImageCmd in interface com.github.dockerjava.api.DockerClient
      • buildImageCmd

        public com.github.dockerjava.api.command.BuildImageCmd buildImageCmd​(InputStream tarInputStream)
        Specified by:
        buildImageCmd in interface com.github.dockerjava.api.DockerClient
      • topContainerCmd

        public com.github.dockerjava.api.command.TopContainerCmd topContainerCmd​(String containerId)
        Specified by:
        topContainerCmd in interface com.github.dockerjava.api.DockerClient
      • tagImageCmd

        public com.github.dockerjava.api.command.TagImageCmd tagImageCmd​(String imageId,
                                                                         String repository,
                                                                         String tag)
        Specified by:
        tagImageCmd in interface com.github.dockerjava.api.DockerClient
      • pauseContainerCmd

        public com.github.dockerjava.api.command.PauseContainerCmd pauseContainerCmd​(String containerId)
        Specified by:
        pauseContainerCmd in interface com.github.dockerjava.api.DockerClient
      • unpauseContainerCmd

        public com.github.dockerjava.api.command.UnpauseContainerCmd unpauseContainerCmd​(String containerId)
        Specified by:
        unpauseContainerCmd in interface com.github.dockerjava.api.DockerClient
      • eventsCmd

        public com.github.dockerjava.api.command.EventsCmd eventsCmd()
        Specified by:
        eventsCmd in interface com.github.dockerjava.api.DockerClient
      • statsCmd

        public com.github.dockerjava.api.command.StatsCmd statsCmd​(String containerId)
        Specified by:
        statsCmd in interface com.github.dockerjava.api.DockerClient
      • createVolumeCmd

        public com.github.dockerjava.api.command.CreateVolumeCmd createVolumeCmd()
        Specified by:
        createVolumeCmd in interface com.github.dockerjava.api.DockerClient
      • inspectVolumeCmd

        public com.github.dockerjava.api.command.InspectVolumeCmd inspectVolumeCmd​(String name)
        Specified by:
        inspectVolumeCmd in interface com.github.dockerjava.api.DockerClient
      • removeVolumeCmd

        public com.github.dockerjava.api.command.RemoveVolumeCmd removeVolumeCmd​(String name)
        Specified by:
        removeVolumeCmd in interface com.github.dockerjava.api.DockerClient
      • listVolumesCmd

        public com.github.dockerjava.api.command.ListVolumesCmd listVolumesCmd()
        Specified by:
        listVolumesCmd in interface com.github.dockerjava.api.DockerClient
      • listNetworksCmd

        public com.github.dockerjava.api.command.ListNetworksCmd listNetworksCmd()
        Specified by:
        listNetworksCmd in interface com.github.dockerjava.api.DockerClient
      • inspectNetworkCmd

        public com.github.dockerjava.api.command.InspectNetworkCmd inspectNetworkCmd()
        Specified by:
        inspectNetworkCmd in interface com.github.dockerjava.api.DockerClient
      • createNetworkCmd

        public com.github.dockerjava.api.command.CreateNetworkCmd createNetworkCmd()
        Specified by:
        createNetworkCmd in interface com.github.dockerjava.api.DockerClient
      • removeNetworkCmd

        public com.github.dockerjava.api.command.RemoveNetworkCmd removeNetworkCmd​(String networkId)
        Specified by:
        removeNetworkCmd in interface com.github.dockerjava.api.DockerClient
      • connectToNetworkCmd

        public com.github.dockerjava.api.command.ConnectToNetworkCmd connectToNetworkCmd()
        Specified by:
        connectToNetworkCmd in interface com.github.dockerjava.api.DockerClient
      • disconnectFromNetworkCmd

        public com.github.dockerjava.api.command.DisconnectFromNetworkCmd disconnectFromNetworkCmd()
        Specified by:
        disconnectFromNetworkCmd in interface com.github.dockerjava.api.DockerClient