Skip to content

Commit

Permalink
[docker] Exit if docker run fails (#1870)
Browse files Browse the repository at this point in the history
  • Loading branch information
qiluo-msft authored Jul 25, 2018
1 parent 93905d3 commit e3abf0c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion files/build_templates/docker_image_ctl.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit e3abf0c

Please sign in to comment.