diff --git a/gns3server/schemas/docker.py b/gns3server/schemas/docker.py index d6c3263e..bd0099a1 100644 --- a/gns3server/schemas/docker.py +++ b/gns3server/schemas/docker.py @@ -82,8 +82,14 @@ DOCKER_CREATE_SCHEMA = { "description": "Docker environment variables", "type": ["string", "null"], "minLength": 0, + }, + "container_id": { + "description": "Docker container ID Read only", + "type": "string", + "minLength": 12, + "maxLength": 64, + "pattern": "^[a-f0-9]+$" } - }, "additionalProperties": False, "required": ["name", "image"]