fix: lowercase docker image tag to avoid invalid reference format
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user