mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-10-09 20:22:54 +02:00
Handle problem when pulling fails
... when e.g. sitting in a German train with bad internet connection
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user