[docker] Exit if docker run fails (#1870)
This commit is contained in:
parent
93905d3d82
commit
e3abf0c070
@ -78,7 +78,10 @@ start() {
|
|||||||
{%- endif %}
|
{%- endif %}
|
||||||
--tmpfs /tmp \
|
--tmpfs /tmp \
|
||||||
--tmpfs /var/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
|
postStartAction
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user