Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
Fix yarn container failed when docker container exited quickly. (#2256)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerhut authored Mar 4, 2019
1 parent 4294699 commit 659e155
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/rest-server/src/templates/yarnContainerScript.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,6 @@ docker pull {{ jobData.image }} \
## network consumption
docker run --name $docker_name \
--init \
--detach \
--tty \
--privileged=false \
--oom-score-adj=1000 \
Expand Down Expand Up @@ -329,9 +328,3 @@ docker run --name $docker_name \
--entrypoint="" \
{{ jobData.image }} \
/bin/bash '/pai/bootstrap/docker_bootstrap.sh'

docker_pid=$(docker inspect --format "{{{ inspectPidFormat }}}" $docker_name)

echo "Docker container pid is $docker_pid"

docker attach --no-stdin $docker_name

0 comments on commit 659e155

Please sign in to comment.