MyDockerRegistry
    • Get Image Manifest
      GET
    • Put image manifest
      PUT
    • Check if manifest exists
      HEAD
    • Delete image manifest
      DELETE
    • Initiate blob upload or attempt cross-repository blob mount
      POST
    • Check existence of blob
      HEAD
    • Retrieve blob
      GET
    • Get blob upload status
      GET
    • Complete blob upload
      PUT
    • Upload blob chunk
      PATCH
    • Cancel blob upload
      GET

      Put image manifest

      开发中
      PUT
      /v2/{name}/manifests/{reference}

      请求参数

      Path 参数

      Header 参数

      Body 参数application/vnd.docker.distribution.manifest.v2+json

      示例
      {
          "schemaVersion": 0,
          "mediaType": "string",
          "config": {
              "mediaType": "string",
              "size": 0,
              "digest": "string"
          },
          "layers": [
              {
                  "mediaType": "string",
                  "size": 0,
                  "digest": "string"
              }
          ]
      }

      请求示例代码

      Shell
      JavaScript
      Java
      Swift
      Go
      PHP
      Python
      HTTP
      C
      C#
      Objective-C
      Ruby
      OCaml
      Dart
      R
      请求示例请求示例
      Shell
      JavaScript
      Java
      Swift
      curl --location --request PUT '/v2//manifests/' \
      --header 'Content-Type: application/vnd.docker.distribution.manifest.v2+json' \
      --data '{
          "schemaVersion": 0,
          "mediaType": "string",
          "config": {
              "mediaType": "string",
              "size": 0,
              "digest": "string"
          },
          "layers": [
              {
                  "mediaType": "string",
                  "size": 0,
                  "digest": "string"
              }
          ]
      }'

      返回响应

      🟢201已创建
      application/json
      Headers

      Bodyapplication/json

      示例
      {
        "schemaVersion": 2,
        "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
        "config": {
          "mediaType": "application/vnd.docker.container.image.v1+json",
          "size": 7023,
          "digest": "sha256:123456abcdef..."
        },
        "layers": [
          {
            "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
            "size": 32654,
            "digest": "sha256:abcdef123456..."
          }
        ]
      }
      🟠400请求有误
      🟠404未找到
      修改于 2025-10-02 06:25:05
      上一页
      Get Image Manifest
      下一页
      Check if manifest exists
      Built with