1
0
mirror of https://github.com/rancher/os.git synced 2025-08-31 14:23:11 +00:00

Check that docker wait exits with 0

This commit is contained in:
Darren Shepherd
2015-02-19 14:16:26 -07:00
parent fb8b4a88fb
commit e8abf31e94
2 changed files with 1 additions and 1 deletions

View File

@@ -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}