From c50ff376eb4a9e0d91e94d30a71b451bcea60edc Mon Sep 17 00:00:00 2001 From: flakey5 <73616808+flakey5@users.noreply.github.com> Date: Wed, 17 Jun 2026 09:57:44 -0700 Subject: [PATCH] CC-7953: add image() to Container Signed-off-by: flakey5 <73616808+flakey5@users.noreply.github.com> --- src/lib/container.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/lib/container.ts b/src/lib/container.ts index b10439d..1def863 100644 --- a/src/lib/container.ts +++ b/src/lib/container.ts @@ -599,6 +599,16 @@ export class Container extends DurableObject { return { ...(await this.state.getState()) }; } + /** + * Gets the container's registry reference url (ex/ `registry.example.com/image:latest`) + * @returns Promise + */ + async image(): Promise { + const inspect = await this.container.inspect(); + + return inspect.image; + } + // ==================================== // OUTBOUND INTERCEPTION CONFIG // ====================================