public class DockerRunCommand extends DockerCommand
| Constructor and Description |
|---|
DockerRunCommand(String containerId,
String user,
String image)
The following are mandatory:
|
addCommandArguments, getCommandOption, preparePrivilegedOperation, setClientConfigDir, toStringpublic 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 DockerCommandpublic DockerRunCommand setOverrideDisabled(boolean toggle)
public DockerRunCommand setLogDir(String logDir)
public boolean containsEnv()
public Map<String,String> getEnv()
Copyright © 2008–2022 Apache Software Foundation. All rights reserved.