Skip to content
Permalink
Browse files

Handle problem when pulling fails

... when e.g. sitting in a German train with bad internet connection
  • Loading branch information
drwetter committed Dec 9, 2019
1 parent c5a13ed commit ce0be5fefcbdb17ab93c4b5bdfddca34c9bd020c
Showing with 4 additions and 0 deletions.
  1. +2 −0 utils/docker-debian10.tls13only.start.sh
  2. +2 −0 utils/docker-nginx.tls13-earlydata.start.sh
@@ -5,6 +5,8 @@ image=${1:-"debian:buster"}
docker pull "$image"
ID=$(docker run -d -ti $image)

[[ "$ID" ]] && echo "container couldn't be retrieved" >&2 && exit 1

docker exec -ti $ID apt-get update
docker exec -ti $ID apt-get install -y ssl-cert dialog
docker exec -ti $ID apt-get install -y nginx-common nginx-light
@@ -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')

0 comments on commit ce0be5f

Please sign in to comment.
You can’t perform that action at this time.