[docker] Exit if docker run fails (#1870)

This commit is contained in:
Qi Luo 2018-07-24 21:46:55 -07:00 committed by GitHub
parent 93905d3d82
commit e3abf0c070
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,7 +78,10 @@ start() {
{%- endif %}
--tmpfs /tmp \
--tmpfs /var/tmp \
--name={{docker_container_name}} {{docker_image_name}}:latest
--name={{docker_container_name}} {{docker_image_name}}:latest || {
echo "Failed to docker run" >&1
exit 4
}
postStartAction
}