Download a container image, and apply it to the container state. All previous state will be lost. Parameters ---------- address: Address of the container image to download, in standard OCI ref format. Example:"registry.dagger.io/engine:latest"
(
self,
address: str,
*,
registry_service: "Service | None" = None,
)
| 2328 | return File(_ctx) |
| 2329 | |
| 2330 | def from_( |
| 2331 | self, |
| 2332 | address: str, |
| 2333 | *, |
| 2334 | registry_service: "Service | None" = None, |
| 2335 | ) -> Self: |
| 2336 | """Download a container image, and apply it to the container state. All |
| 2337 | previous state will be lost. |
| 2338 | |
| 2339 | Parameters |
| 2340 | ---------- |
| 2341 | address: |
| 2342 | Address of the container image to download, in standard OCI ref |
| 2343 | format. Example:"registry.dagger.io/engine:latest" |
| 2344 | registry_service: |
| 2345 | Service to use as the registry endpoint for the image address. |
| 2346 | The service will be started only for this pull. |
| 2347 | """ |
| 2348 | _args = [ |
| 2349 | Arg("address", address), |
| 2350 | Arg("registryService", registry_service, None), |
| 2351 | ] |
| 2352 | _ctx = self._select("from", _args) |
| 2353 | return Container(_ctx) |
| 2354 | |
| 2355 | async def id(self) -> str: |
| 2356 | """A unique identifier for this Container. |