public class DockerRunCommand extends DockerCommand
Constructor and Description |
---|
DockerRunCommand(String containerId,
String user,
String image)
The following are mandatory:
|
addCommandArguments, getCommandOption, preparePrivilegedOperation, setClientConfigDir, toString
public DockerRunCommand removeContainerOnExit()
public DockerRunCommand detachOnRun()
public DockerRunCommand setContainerWorkDir(String workdir)
public DockerRunCommand setNetworkType(String type)
public DockerRunCommand setPidNamespace(String type)
public DockerRunCommand addMountLocation(String sourcePath, String destinationPath, String mode)
public DockerRunCommand addReadWriteMountLocation(String sourcePath, String destinationPath)
public DockerRunCommand addAllReadWriteMountLocations(List<String> paths)
public DockerRunCommand addReadOnlyMountLocation(String sourcePath, String destinationPath, boolean createSource)
public DockerRunCommand addReadOnlyMountLocation(String sourcePath, String destinationPath)
public DockerRunCommand addAllReadOnlyMountLocations(List<String> paths)
public DockerRunCommand addTmpfsMount(String mount)
public DockerRunCommand setVolumeDriver(String volumeDriver)
public DockerRunCommand setCGroupParent(String parentPath)
public DockerRunCommand setPrivileged()
public DockerRunCommand setCapabilities(Set<String> capabilties)
public DockerRunCommand setHostname(String hostname)
public DockerRunCommand addDevice(String sourceDevice, String destinationDevice)
public DockerRunCommand enableDetach()
public DockerRunCommand disableDetach()
public DockerRunCommand addPortsMapping(String mapping)
public DockerRunCommand addRuntime(String runtime)
public DockerRunCommand groupAdd(String[] groups)
public DockerRunCommand setOverrideCommandWithArgs(List<String> overrideCommandWithArgs)
public Map<String,List<String>> getDockerCommandWithArguments()
getDockerCommandWithArguments
in class DockerCommand
public DockerRunCommand setOverrideDisabled(boolean toggle)
public DockerRunCommand setLogDir(String logDir)
public DockerRunCommand setServiceMode(boolean serviceMode)
public boolean containsEnv()
public Map<String,String> getEnv()
public final void addEnv(Map<String,String> environment)
environment
- A map of user defined environment variablespublic DockerRunCommand setYarnSysFS(boolean toggle)
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.