diff --git a/ogscm/recipes/ogs_jupyter.py b/ogscm/recipes/ogs_jupyter.py
index 73ef4b2b09977bcb91db1299b4c52e68d74ad57a..bd9e79efbe198468443f02351da2f3dbcc37886b 100644
--- a/ogscm/recipes/ogs_jupyter.py
+++ b/ogscm/recipes/ogs_jupyter.py
@@ -20,7 +20,7 @@ parse_g.add_argument(
 # Parse local args
 local_args = parser.parse_known_args()[0]
 
-if not local_args.runtime_base_image.startswith("jupyter/"):
+if not "jupyter/" in local_args.runtime_base_image:
     print(
         "The ogs_jupyter.py recipe requires a Jupyter base image for the "
         "runtime stage! E.g. --runtime_base_image jupyter/base-notebook"