Class WindowsDockerClient
java.lang.Object
org.jenkinsci.plugins.docker.workflow.client.DockerClient
org.jenkinsci.plugins.docker.workflow.client.WindowsDockerClient
- 
Field SummaryFields inherited from class org.jenkinsci.plugins.docker.workflow.client.DockerClientCLIENT_TIMEOUT, DOCKER_DATE_TIME_FORMAT, SKIP_RM_ON_STOP
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncom.google.common.base.Optional<String>Checks if thisDockerClientinstance is running inside a container and returns the id of the container if so.listProcess(EnvVars launchEnv, String containerId) run(EnvVars launchEnv, String image, String args, String workdir, Map<String, String> volumes, Collection<String> volumesFromContainers, EnvVars containerEnv, String user, String... command) Run a docker image.whoAmI()Who is executing thisDockerClientinstance.Methods inherited from class org.jenkinsci.plugins.docker.workflow.client.DockerClientgetContainerRecord, getVolumes, inspect, inspectRequiredField, parseVersionNumber, rm, stop, version
- 
Constructor Details- 
WindowsDockerClient
 
- 
- 
Method Details- 
runpublic String run(@NonNull EnvVars launchEnv, @NonNull String image, @CheckForNull String args, @CheckForNull String workdir, @NonNull Map<String, String> volumes, @NonNull Collection<String> volumesFromContainers, @NonNull EnvVars containerEnv, @NonNull String user, @NonNull String... command) throws IOException, InterruptedExceptionDescription copied from class:DockerClientRun a docker image.- Overrides:
- runin class- DockerClient
- Parameters:
- launchEnv- Docker client launch environment.
- image- The image name.
- args- Any additional arguments for the- docker runcommand.
- workdir- The working directory in the container, or- nullfor default.
- volumes- Volumes to be bound. Supply an empty list if no volumes are to be bound.
- volumesFromContainers- Mounts all volumes from the given containers.
- containerEnv- Environment variables to set in container.
- user- The uid:gid to execute the container command as. Use- DockerClient.whoAmI().
- command- The command to execute in the image container being run.
- Returns:
- The container ID.
- Throws:
- IOException
- InterruptedException
 
- 
listProcesspublic List<String> listProcess(@NonNull EnvVars launchEnv, @NonNull String containerId) throws IOException, InterruptedException - Overrides:
- listProcessin class- DockerClient
- Throws:
- IOException
- InterruptedException
 
- 
getContainerIdIfContainerizedpublic com.google.common.base.Optional<String> getContainerIdIfContainerized() throws IOException, InterruptedExceptionDescription copied from class:DockerClientChecks if thisDockerClientinstance is running inside a container and returns the id of the container if so.- Overrides:
- getContainerIdIfContainerizedin class- DockerClient
- Returns:
- an optional string containing the container id, or absent if it isn't containerized.
- Throws:
- IOException
- InterruptedException
- See Also:
 
- 
whoAmIDescription copied from class:DockerClientWho is executing thisDockerClientinstance.- Overrides:
- whoAmIin class- DockerClient
- Returns:
- a Stringcontaining the uid:gid.
- Throws:
- IOException
- InterruptedException
 
 
-