Handle problem when pulling fails

... when e.g. sitting in a German train with bad internet connection
This commit is contained in:
Dirk
2019-12-09 10:26:39 +01:00
parent c5a13ed689
commit ce0be5fefc
2 changed files with 4 additions and 0 deletions

View File

@ -6,6 +6,8 @@ ID=$(docker run -d -ti $image)
echo $ID
[[ "$ID" ]] && echo "container couldn't be retrieved" >&2 && exit 1
docker exec -ti $ID nginx -V
docker exec -ti $ID mkdir /etc/nginx/ssl
HN=$(docker exec -ti $ID hostname| tr -d '\n' | tr -d '\r')