{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "add_container",
  "type": "object",
  "properties": {
    "interface": {
      "type": "string",
      "minLength": 1,
      "description": "Previously configured VETH"
    },
    "root_dir": {
      "type": "string",
      "minLength": 1,
      "description": "Dedicated root path on verified storage"
    },
    "env": {
      "description": "Sensitive inline environment; verify support on the target",
      "type": "string"
    },
    "envlists": {
      "description": "Current CLI named environment lists",
      "type": "string"
    },
    "envlist": {
      "description": "Legacy singular envlist; exclusive with envlists",
      "type": "string"
    },
    "mount": {
      "description": "Inline mount expression supported by the target; not Docker syntax",
      "type": "string"
    },
    "mountlists": {
      "description": "Current CLI named mount lists",
      "type": "string"
    },
    "mounts": {
      "description": "Legacy mounts reference; exclusive with mountlists",
      "type": "string"
    },
    "cmd": {
      "description": "Command override; may contain secrets",
      "type": "string"
    },
    "entrypoint": {
      "description": "Entrypoint override; may contain secrets",
      "type": "string"
    },
    "workdir": {
      "type": "string"
    },
    "hostname": {
      "type": "string"
    },
    "dns": {
      "type": "string"
    },
    "user": {
      "type": "string"
    },
    "stop_signal": {
      "type": "string"
    },
    "devices": {
      "description": "Device passthrough; extra privilege requires explicit review",
      "type": "string"
    },
    "cpu_list": {
      "type": "string"
    },
    "memory_high": {
      "description": "Soft memory pressure threshold, not a hard cap",
      "type": "string"
    },
    "memory_max": {
      "description": "Hard memory limit only where supported; can terminate processes",
      "type": "string"
    },
    "logging": {
      "type": "boolean"
    },
    "start_on_boot": {
      "type": "boolean"
    },
    "comment": {
      "type": "string"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "description": "Unique name for read-back and ambiguous-write recovery"
    },
    "remote_image": {
      "description": "Reviewed architecture-compatible image with pinned version/digest",
      "type": "string",
      "minLength": 1
    },
    "file": {
      "description": "Uploaded Docker/Podman saved image archive supported by the target",
      "type": "string",
      "minLength": 1
    }
  },
  "required": ["interface", "root_dir", "name"],
  "additionalProperties": false
}
