mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Remove call to stop_docker
This commit is contained in:
parent
51f9cdd14a
commit
7127098f86
@ -66,22 +66,10 @@ start_docker() {
|
||||
docker daemon --data-root /scratch/docker ${server_args} >/tmp/docker.log 2>&1 &
|
||||
echo $! > /tmp/docker.pid
|
||||
|
||||
trap stop_docker EXIT
|
||||
|
||||
sleep 1
|
||||
|
||||
until docker info >/dev/null 2>&1; do
|
||||
echo waiting for docker to come up...
|
||||
sleep 1
|
||||
done
|
||||
}
|
||||
|
||||
stop_docker() {
|
||||
local pid=$(cat /tmp/docker.pid)
|
||||
if [ -z "$pid" ]; then
|
||||
return 0
|
||||
fi
|
||||
|
||||
kill -TERM $pid
|
||||
wait $pid
|
||||
}
|
Loading…
Reference in New Issue
Block a user