Images¶
- class ImageClient(beaker: Beaker)[source]¶
Methods for interacting with Beaker Images. Accessed via the
Beaker.imageproperty.Warning
Do not instantiate this class directly! The
Beakerclient will create one automatically which you can access through the corresponding property.- get(image: str) Image[source]¶
- Examples:
>>> with Beaker.from_env() as beaker: ... image = beaker.image.get(image_id)
- Returns:
A
BeakerImageprotobuf object.- Raises:
BeakerImageNotFound – If the image doesn’t exist.
- create(name: str, image_tag: str, *, workspace: Workspace | None = None, description: str | None = None, commit: bool = True) Image[source]¶
Upload a local Docker image to Beaker.
- Parameters:
name – The name to assign to the image on Beaker.
image_tag – The tag of the local image you’re uploading.
workspace – The workspace to upload the image to. If not specified, your default workspace is used.
description – Text description of the image.
quiet – If
True, progress won’t be displayed.commit – Whether to commit the image after successful upload.