public class NvidiaDockerV1CommandPlugin extends Object implements DockerCommandPlugin
| Constructor and Description |
|---|
NvidiaDockerV1CommandPlugin(org.apache.hadoop.conf.Configuration conf) |
| Modifier and Type | Method and Description |
|---|---|
DockerVolumeCommand |
getCleanupDockerVolumesCommand(Container container)
Cleanup volumes created for one docker container
|
DockerVolumeCommand |
getCreateDockerVolumeCommand(Container container)
Create volume when needed.
|
protected boolean |
requestsGpu(Container container) |
void |
updateDockerRunCommand(DockerRunCommand dockerRunCommand,
Container container)
Update docker run command
|
public NvidiaDockerV1CommandPlugin(org.apache.hadoop.conf.Configuration conf)
@VisibleForTesting protected boolean requestsGpu(Container container)
public void updateDockerRunCommand(DockerRunCommand dockerRunCommand, Container container) throws ContainerExecutionException
DockerCommandPluginupdateDockerRunCommand in interface DockerCommandPlugindockerRunCommand - docker run commandcontainer - NM containerContainerExecutionException - if any issue occurspublic DockerVolumeCommand getCreateDockerVolumeCommand(Container container) throws ContainerExecutionException
DockerCommandPlugingetCreateDockerVolumeCommand in interface DockerCommandPlugincontainer - containerDockerVolumeCommand to create volumeContainerExecutionException - when any issue happenspublic DockerVolumeCommand getCleanupDockerVolumesCommand(Container container) throws ContainerExecutionException
DockerCommandPlugingetCleanupDockerVolumesCommand in interface DockerCommandPlugincontainer - containerDockerVolumeCommand to remove volumeContainerExecutionException - when any issue happensCopyright © 2008–2024 Apache Software Foundation. All rights reserved.