...

Text file src/github.com/opencontainers/image-spec/schema/config-schema.json

Documentation: github.com/opencontainers/image-spec/schema

     1{
     2  "description": "OpenContainer Config Specification",
     3  "$schema": "http://json-schema.org/draft-04/schema#",
     4  "id": "https://opencontainers.org/schema/image/config",
     5  "type": "object",
     6  "properties": {
     7    "created": {
     8      "type": "string",
     9      "format": "date-time"
    10    },
    11    "author": {
    12      "type": "string"
    13    },
    14    "architecture": {
    15      "type": "string"
    16    },
    17    "variant": {
    18      "type": "string"
    19    },
    20    "os": {
    21      "type": "string"
    22    },
    23    "os.version": {
    24      "type": "string"
    25    },
    26    "os.features": {
    27      "type": "array",
    28      "items": {
    29        "type": "string"
    30      }
    31    },
    32    "config": {
    33      "type": "object",
    34      "properties": {
    35        "User": {
    36          "type": "string"
    37        },
    38        "ExposedPorts": {
    39          "$ref": "defs.json#/definitions/mapStringObject"
    40        },
    41        "Env": {
    42          "type": "array",
    43          "items": {
    44            "type": "string"
    45          }
    46        },
    47        "Entrypoint": {
    48          "oneOf": [
    49            {
    50              "type": "array",
    51              "items": {
    52                "type": "string"
    53              }
    54            },
    55            {
    56              "type": "null"
    57            }
    58          ]
    59        },
    60        "Cmd": {
    61          "oneOf": [
    62            {
    63              "type": "array",
    64              "items": {
    65                "type": "string"
    66              }
    67            },
    68            {
    69              "type": "null"
    70            }
    71          ]
    72        },
    73        "Volumes": {
    74          "oneOf": [
    75            {
    76              "$ref": "defs.json#/definitions/mapStringObject"
    77            },
    78            {
    79              "type": "null"
    80            }
    81          ]
    82        },
    83        "WorkingDir": {
    84          "type": "string"
    85        },
    86        "Labels": {
    87          "oneOf": [
    88            {
    89              "$ref": "defs.json#/definitions/mapStringString"
    90            },
    91            {
    92              "type": "null"
    93            }
    94          ]
    95        },
    96        "StopSignal": {
    97          "type": "string"
    98        },
    99        "ArgsEscaped": {
   100          "type": "boolean"
   101        }
   102      }
   103    },
   104    "rootfs": {
   105      "type": "object",
   106      "properties": {
   107        "diff_ids": {
   108          "type": "array",
   109          "items": {
   110            "type": "string"
   111          }
   112        },
   113        "type": {
   114          "type": "string",
   115          "enum": [
   116            "layers"
   117          ]
   118        }
   119      },
   120      "required": [
   121        "diff_ids",
   122        "type"
   123      ]
   124    },
   125    "history": {
   126      "type": "array",
   127      "items": {
   128        "type": "object",
   129        "properties": {
   130          "created": {
   131            "type": "string",
   132            "format": "date-time"
   133          },
   134          "author": {
   135            "type": "string"
   136          },
   137          "created_by": {
   138            "type": "string"
   139          },
   140          "comment": {
   141            "type": "string"
   142          },
   143          "empty_layer": {
   144            "type": "boolean"
   145          }
   146        }
   147      }
   148    }
   149  },
   150  "required": [
   151    "architecture",
   152    "os",
   153    "rootfs"
   154  ]
   155}

View as plain text