Skip to content

Image API Docs

Daryl edited this page Nov 4, 2022 · 8 revisions

All important API calls that belong in /api/image

List all image id

GET /api/image/id

{ "response": Array }

List brief inspected info by id

GET /api/image/info/:image_id

{ "response": {
    "Config": {
        "Hostname": String,
        "User": String,
        "Env": Array,
        "Cmd": Array,
        "Volumes": Mixed
        "WorkingDir": String,
        "Entrypoint": Array
    },
    "RootFS": { "Type": String, "Layers": Array },
    "Metadata": { "LastTagTime": String },
    "Id": String,
    "RepoTags": Array,
    "Created": String,
    "Author": String,
    "Architecture": String,
    "Variant": String,
    "Size": Number
} }

List all inspected info by id

GET /api/image/info/:image_id/all

Downloadable json data

Get dockerfile by id

/api/image/dockerfile/:image_id

{ "response": String }

Get layer info by id

/api/image/layer/:image_id

{ "response": [layer_id]: {
    "Add": Array,
    "Edit": Array,
    "Delete": Array,
  }
  ...
} }

Download image

/api/image/fs/:image_id

Returns image_id.tag.gz as downloadable file

Download file from image layer

/api/image/fs/:image_id/:layer_id?file=<file_path>

Returns downloadable file