|
@@ -217,12 +217,12 @@ public class DockerExe {
|
|
|
|
|
|
//创建容器
|
|
|
CreateContainerResponse container = dockerClient
|
|
|
- .createContainerCmd("surromdao:1.0")//镜像名称
|
|
|
+ .createContainerCmd("surromdao:2.0")//镜像名称
|
|
|
.withName(pid)//容器名称
|
|
|
.withHostConfig(
|
|
|
HostConfig.newHostConfig()
|
|
|
.withMounts(am)
|
|
|
- ).withCmd("bash", "-c", "source /home/mdo/aeroelastic.sh && cd /cephfs/mdo/"+pid+"/in && mpiexec -n 1 python run.py")
|
|
|
+ ).withCmd("bash", "-c", "source /home/mdo/aeroelastic.sh && cd /cephfs/mdo/"+pid+"/in && mpiexec -n 4 python run.py")
|
|
|
.exec();
|
|
|
dockerClient.startContainerCmd(container.getId()).exec();
|
|
|
System.out.println("容器启动成功,ID: " + container.getId());
|