mirror of
https://github.com/rancher/os.git
synced 2025-08-31 06:11:12 +00:00
Check that docker wait exits with 0
This commit is contained in:
@@ -25,7 +25,7 @@ generate_images()
|
||||
CID=$(docker run -d --privileged ${DOCKER_IMAGE} /source/scripts/build-images)
|
||||
docker logs -f ${CID} &
|
||||
trap "docker rm -f ${CID}" exit
|
||||
docker wait $CID
|
||||
[ "$(docker wait $CID)" == 0 ]
|
||||
DOCKER_BASE=$(docker commit $CID)
|
||||
|
||||
echo ${DOCKER_BASE} > ${BUILD}/${IMAGE_ID}
|
||||
|
Reference in New Issue
Block a user