diff --git a/sbin/tag_and_push_docker_image.sh b/sbin/tag_and_push_docker_image.sh
index 5898e6de3100e292c96f74f16d106e06174388ee..661ad31583fabebdc31dd68c9000576a96fc7a4f 100755
--- a/sbin/tag_and_push_docker_image.sh
+++ b/sbin/tag_and_push_docker_image.sh
@@ -40,10 +40,13 @@ fi
 # TODO(Corne): Have this list generated from the .yml files
 LOCAL_IMAGES=(
   "elk" "elk-configure-host" "grafana" "prometheus" "lofar-device-base"
-  "docker-compose_jupyter" "docker-compose_integration-test"
-  "docker-compose_itango" "docker-compose_tango-prometheus-exporter"
 )
 
+# TBD TODO(Corne): Verify using these images as cache works
+#  "docker-compose_jupyter" "docker-compose_integration-test"
+#  "docker-compose_itango" "docker-compose_tango-prometheus-exporter"
+#)
+
 # If first argument set run second stage, determine LOCAL_IMAGE to build and
 # push from the argument
 if [ ! -z "${1+x}" ] && [ "${1}" != "pull" ]; then
@@ -82,7 +85,7 @@ fi
 
 # Final stage, pull images for integration cache try special tag image first
 # if it fails download latest instead
-if [ -z "${1+x}" ] && [ "${1}" == "pull" ]; then
+if [ ! -z "${1+x}" ] && [ "${1}" == "pull" ]; then
   echo "Pulling images for integration test cache"
 
   # The second argument must pass the tag variable must be set
@@ -95,8 +98,12 @@ if [ -z "${1+x}" ] && [ "${1}" == "pull" ]; then
   tag="${2}"
 
   for image in "${LOCAL_IMAGES[@]}"; do
+    local_url="${LOCAL_DOCKER_REGISTRY_HOST}/${LOCAL_DOCKER_REGISTRY_USER}/${image}"
     docker pull "${local_url}:${tag}" || docker pull "${local_url}:latest"
   done
 
   exit 0
 fi
+
+# Someone nothing ran, that is an error do not fail silently
+exit 1
\ No newline at end of file