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 // ====================================