diff --git a/entrypoint.sh b/entrypoint.sh index cc2f4eb..0899a4c 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -8,6 +8,9 @@ if [ ! -z $INPUT_DOCKER_NETWORK ]; then INPUT_OPTIONS="$INPUT_OPTIONS --network $INPUT_DOCKER_NETWORK" fi -then echo "loading image from $INPUT_TARBALL"; docker load --input $INPUT_TARBALL +if [ ! -z $INPUT_TARBALL ]; +then echo "loading image from $INPUT_TARBALL" + docker load --input $INPUT_TARBALL +fi exec docker run -v "/var/run/docker.sock":"/var/run/docker.sock" $INPUT_OPTIONS --entrypoint=$INPUT_SHELL $INPUT_IMAGE -c "${INPUT_RUN//$'\n'/;}"