Commit bc103458 authored by zauberstuhl's avatar zauberstuhl
Browse files

Print container log for debugging purposes

parent c005dd3c
Pipeline #2337 failed with stage
in 10 minutes and 29 seconds
......@@ -97,6 +97,12 @@ function stop_app() {
# remove_app "g1"
function remove_app() {
# print the entire container log before
# deleting for debugging purposes
echo -e "#\n#\n# CONTAINER LOG $(container_id "$1")\n#\n#" >&3
docker logs "$(container_id "$1")" 2>&1 \
| while read line; do echo "# $line" >&3; done
# delete the container
docker rm "$(container_id "$1")"
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment