---
title: "List Files in Docker Image Directory"
method: GET
path: "/api/clusters/{clusterName}/docker/browse/{imageRef}"
tags: ["Docker"]
---

# List Files in Docker Image Directory

`GET /api/clusters/{clusterName}/docker/browse/{imageRef}`

Lists files in a specified directory of a Docker image.

## Path parameters

- `clusterName` string, required
- `imageRef` string, required

## Headers

- `Authorization` string, required

## Response `200`

List of files in the directory

- TreehelperFileTreeCache
  - `isCached` boolean
  - `lastUpdate` string
  - `layers` string[]
  - `reference` string
  - `tree` TreehelperFileEntry
    - `children` TreehelperFileEntry[]
    - `id` string — Unique identifier for the file entry
    - `name` string
    - `path` string
    - `type` string — "file" or "symlink" or "directory"
  - `truncated` boolean — true when file count exceeded the limit

## Other responses

- `400` — Image reference or source directory not provided
- `403` — No valid ACL
- `500` — Error listing files in image directory" or "Error encoding JSON

---

[API](https://skmtc.net/signal18/apis/untitled-api.md) · [All operations](https://skmtc.net/signal18/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/signal18/untitled-api/revisions/7465ea0ee21a/schema)
