diff --git a/rosetta/rerun b/rosetta/rerun
index 2ceb7540912cc7cecbd9e05da284b5443137f5b9..553a01325df58eb9d1895cc5dfc5f1e020742484 100755
--- a/rosetta/rerun
+++ b/rosetta/rerun
@@ -10,5 +10,11 @@ if [[ $# -eq 0 ]] ; then
     docker-compose down
     docker-compose up -d
 else
-    docker-compose up -d --no-deps $@
+    UPDATE_OUT=$(docker-compose up -d --no-deps $@ 2>&1)
+    if [[ $UPDATE_OUT == *"is up-to-date"* ]]; then
+        echo "Image is up to date, only restarting the service..."
+        docker-compose restart $@
+    else
+        echo "Updated image and restarted the the service."
+    fi
 fi