{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/dockerd-json/latest.json",
  "title": "Docker Daemon configuration schema",
  "description": "<https://docs.docker.com/engine/reference/commandline/dockerd/#daemon>",
  "x-lintel": {
    "source": "https://www.schemastore.org/dockerd.json",
    "sourceSha256": "21948880d155bf6e678675ca708c0af24cb462e82c138c12b9186858c84ac544",
    "fileMatch": [
      "dockerd.json",
      "docker.json"
    ],
    "parsers": [
      "json"
    ]
  },
  "type": "object",
  "properties": {
    "allow-nondistributable-artifacts": {
      "type": "array",
      "items": {}
    },
    "api-cors-header": {
      "type": "string"
    },
    "authorization-plugins": {
      "type": "array",
      "items": {}
    },
    "bip": {
      "type": "string"
    },
    "bridge": {
      "type": "string"
    },
    "cgroup-parent": {
      "type": "string"
    },
    "cluster-advertise": {
      "type": "string"
    },
    "cluster-store": {
      "type": "string"
    },
    "cluster-store-opts": {
      "type": "object"
    },
    "containerd": {
      "type": "string",
      "examples": [
        "/run/containerd/containerd.sock"
      ]
    },
    "containerd-namespace": {
      "type": "string",
      "examples": [
        "docker"
      ]
    },
    "containerd-plugin-namespace": {
      "type": "string",
      "examples": [
        "docker-plugins"
      ]
    },
    "data-root": {
      "type": "string"
    },
    "debug": {
      "type": "boolean",
      "default": false,
      "examples": [
        true
      ]
    },
    "default-address-pools": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "base": {
            "type": "string",
            "examples": [
              "172.30.0.0/16",
              "172.31.0.0/16"
            ]
          },
          "size": {
            "type": "number",
            "examples": [
              24
            ]
          }
        },
        "examples": [
          {
            "base": "172.30.0.0/16",
            "size": 24
          },
          {
            "base": "172.31.0.0/16",
            "size": 24
          }
        ]
      },
      "examples": [
        [
          {
            "base": "172.30.0.0/16",
            "size": 24
          },
          {
            "base": "172.31.0.0/16",
            "size": 24
          }
        ]
      ]
    },
    "default-cgroupns-mode": {
      "type": "string",
      "default": "host",
      "examples": [
        "host",
        "private"
      ],
      "enum": [
        "private",
        "host"
      ]
    },
    "default-ipc-mode": {
      "type": "string",
      "default": "private",
      "examples": [
        "shareable",
        "private"
      ],
      "enum": [
        "shareable",
        "private"
      ]
    },
    "default-gateway": {
      "type": "string"
    },
    "default-gateway-v6": {
      "type": "string"
    },
    "default-runtime": {
      "type": "string",
      "default": "containerd",
      "examples": [
        "runc",
        "containerd"
      ]
    },
    "default-shm-size": {
      "type": "string",
      "examples": [
        "64M"
      ]
    },
    "default-ulimits": {
      "type": "object",
      "properties": {
        "nofile": {
          "type": "object",
          "properties": {
            "Hard": {
              "type": "number",
              "default": 0,
              "examples": [
                64000
              ]
            },
            "Name": {
              "type": "string",
              "examples": [
                "nofile"
              ]
            },
            "Soft": {
              "type": "number",
              "default": 0,
              "examples": [
                64000
              ]
            }
          },
          "examples": [
            {
              "Hard": 64000,
              "Name": "nofile",
              "Soft": 64000
            }
          ]
        }
      },
      "examples": [
        {
          "nofile": {
            "Hard": 64000,
            "Name": "nofile",
            "Soft": 64000
          }
        }
      ]
    },
    "dns": {
      "type": "array",
      "items": {}
    },
    "dns-opts": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "dns-search": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "exec-opts": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "exec-root": {
      "type": "string"
    },
    "experimental": {
      "type": "boolean",
      "default": false,
      "examples": [
        true
      ]
    },
    "features": {
      "type": "object"
    },
    "fixed-cidr": {
      "type": "string"
    },
    "fixed-cidr-v6": {
      "type": "string"
    },
    "group": {
      "type": "string"
    },
    "hosts": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "icc": {
      "type": "boolean",
      "default": false
    },
    "init": {
      "type": "boolean",
      "default": false
    },
    "init-path": {
      "type": "string",
      "examples": [
        "/usr/libexec/docker-init"
      ]
    },
    "insecure-registries": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "ip": {
      "type": "string",
      "examples": [
        "0.0.0.0"
      ]
    },
    "ip-forward": {
      "type": "boolean",
      "default": false
    },
    "ip-masq": {
      "type": "boolean",
      "default": false
    },
    "iptables": {
      "type": "boolean",
      "default": false
    },
    "ip6tables": {
      "type": "boolean",
      "default": false
    },
    "ipv6": {
      "type": "boolean",
      "default": false
    },
    "labels": {
      "type": "array",
      "items": {}
    },
    "live-restore": {
      "type": "boolean",
      "default": false,
      "examples": [
        true
      ]
    },
    "log-driver": {
      "type": "string",
      "examples": [
        "json-file"
      ]
    },
    "log-level": {
      "type": "string"
    },
    "log-opts": {
      "type": "object",
      "properties": {
        "cache-disabled": {
          "type": "string",
          "examples": [
            "false"
          ]
        },
        "cache-max-file": {
          "type": "string",
          "examples": [
            "5"
          ]
        },
        "cache-max-size": {
          "type": "string",
          "examples": [
            "20m"
          ]
        },
        "cache-compress": {
          "type": "string",
          "examples": [
            "true"
          ]
        },
        "env": {
          "type": "string",
          "examples": [
            "os,customer"
          ]
        },
        "labels": {
          "type": "string",
          "examples": [
            "somelabel"
          ]
        },
        "max-file": {
          "type": "string",
          "examples": [
            "5"
          ]
        },
        "max-size": {
          "type": "string",
          "examples": [
            "10m"
          ]
        }
      },
      "examples": [
        {
          "cache-disabled": "false",
          "cache-max-file": "5",
          "cache-max-size": "20m",
          "cache-compress": "true",
          "env": "os,customer",
          "labels": "somelabel",
          "max-file": "5",
          "max-size": "10m"
        }
      ]
    },
    "max-concurrent-downloads": {
      "type": "number",
      "default": 0,
      "examples": [
        3
      ]
    },
    "max-concurrent-uploads": {
      "type": "number",
      "default": 0,
      "examples": [
        5
      ]
    },
    "max-download-attempts": {
      "type": "number",
      "default": 0,
      "examples": [
        5
      ]
    },
    "mtu": {
      "type": "number",
      "default": 0,
      "examples": [
        0
      ]
    },
    "no-new-privileges": {
      "type": "boolean",
      "default": false
    },
    "node-generic-resources": {
      "type": "array",
      "items": {
        "type": "string",
        "examples": [
          "NVIDIA-GPU=UUID1",
          "NVIDIA-GPU=UUID2"
        ]
      },
      "examples": [
        [
          "NVIDIA-GPU=UUID1",
          "NVIDIA-GPU=UUID2"
        ]
      ]
    },
    "oom-score-adjust": {
      "type": "number",
      "examples": [
        -500
      ]
    },
    "pidfile": {
      "type": "string"
    },
    "raw-logs": {
      "type": "boolean",
      "default": false
    },
    "registry-mirrors": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "runtimes": {
      "type": "object",
      "properties": {
        "cc-runtime": {
          "type": "object",
          "properties": {
            "path": {
              "type": "string",
              "examples": [
                "/usr/bin/cc-runtime"
              ]
            }
          },
          "examples": [
            {
              "path": "/usr/bin/cc-runtime"
            }
          ]
        },
        "custom": {
          "type": "object",
          "properties": {
            "path": {
              "type": "string",
              "examples": [
                "/usr/local/bin/my-runc-replacement"
              ]
            },
            "runtimeArgs": {
              "type": "array",
              "items": {
                "type": "string",
                "examples": [
                  "--debug"
                ]
              },
              "examples": [
                [
                  "--debug"
                ]
              ]
            }
          },
          "examples": [
            {
              "path": "/usr/local/bin/my-runc-replacement",
              "runtimeArgs": [
                "--debug"
              ]
            }
          ]
        }
      },
      "examples": [
        {
          "cc-runtime": {
            "path": "/usr/bin/cc-runtime"
          },
          "custom": {
            "path": "/usr/local/bin/my-runc-replacement",
            "runtimeArgs": [
              "--debug"
            ]
          }
        }
      ]
    },
    "seccomp-profile": {
      "type": "string"
    },
    "selinux-enabled": {
      "type": "boolean",
      "default": false
    },
    "shutdown-timeout": {
      "type": "number",
      "default": 0,
      "examples": [
        15
      ]
    },
    "storage-driver": {
      "type": "string"
    },
    "storage-opts": {
      "type": "array",
      "items": {}
    },
    "swarm-default-advertise-addr": {
      "type": "string"
    },
    "tls": {
      "type": "boolean",
      "default": false,
      "examples": [
        true
      ]
    },
    "tlscacert": {
      "type": "string"
    },
    "tlscert": {
      "type": "string"
    },
    "tlskey": {
      "type": "string"
    },
    "tlsverify": {
      "type": "boolean",
      "default": false,
      "examples": [
        true
      ]
    },
    "userland-proxy": {
      "type": "boolean",
      "default": false
    },
    "userland-proxy-path": {
      "type": "string",
      "examples": [
        "/usr/libexec/docker-proxy"
      ]
    },
    "userns-remap": {
      "type": "string"
    }
  }
}
