이미지

이미지 (image)

Docker Hub 저장소의 이미지 메타데이터를 나타내는 스키마예요. 이미지의 아키텍처·OS·다이제스트·크기·레이어 정보·풀/푸시 시각·상태를 담아요.

출처: 문서

본문

이미지 객체의 필드는 다음과 같아요.

  • architecture: CPU 아키텍처
  • digest: 이미지 다이제스트 (null 가능)
  • features: CPU 기능 (null 가능)
  • last_pulled/last_pushed: 마지막 풀/푸시 시각 (null 가능)
  • layers: layer 항목들의 배열
  • os: 운영체제
  • os_features/os_version: OS 기능·버전 (null 가능)
  • size: 이미지 크기 (정수)
  • status: 이미지 상태 (active/inactive)
  • variant: CPU 변형 (null 가능)
{
  "properties": {
    "architecture": {
      "description": "CPU architecture",
      "type": "string"
    },
    "digest": {
      "description": "image digest",
      "type": [
        "string",
        "null"
      ]
    },
    "features": {
      "description": "CPU features",
      "type": [
        "string",
        "null"
      ]
    },
    "last_pulled": {
      "description": "datetime of last pull",
      "example": "2021-01-05T21:06:53.506400Z",
      "type": [
        "string",
        "null"
      ]
    },
    "last_pushed": {
      "description": "datetime of last push",
      "example": "2021-01-05T21:06:53.506400Z",
      "type": [
        "string",
        "null"
      ]
    },
    "layers": {
      "items": {
        "$ref": "#/components/schemas/layer"
      },
      "type": "array"
    },
    "os": {
      "description": "operating system",
      "type": "string"
    },
    "os_features": {
      "description": "OS features",
      "type": [
        "string",
        "null"
      ]
    },
    "os_version": {
      "description": "OS version",
      "type": [
        "string",
        "null"
      ]
    },
    "size": {
      "description": "size of the image",
      "type": "integer"
    },
    "status": {
      "description": "Status of the image",
      "enum": [
        "active",
        "inactive"
      ],
      "type": "string"
    },
    "variant": {
      "description": "CPU variant",
      "type": [
        "string",
        "null"
      ]
    }
  },
  "type": "object"
}

더 알아보기