fix: lowercase docker image tag to avoid invalid reference format

This commit is contained in:
Alex Blank
2026-05-27 22:02:01 +02:00
parent 28aa9ccf5a
commit bc71fd6fac
+2 -2
View File
@@ -585,7 +585,7 @@ async def create_instance(
# Handle based on definition type
if tool_type.definition_type == "dockerfile":
# Build image from Dockerfile
image_tag = f"headquarter/{instance_name}:latest"
image_tag = f"headquarter/{instance_name}:latest".lower()
if tool_type.dockerfile_template:
returncode, stdout, stderr = build_image(
@@ -609,7 +609,7 @@ async def create_instance(
services:
app:
image: {image_tag}
container_name: {instance_name}
container_name: {instance_name.lower()}
ports:
- "{tool_port}:{tool_type.default_port}"
volumes: