MCPcopy Create free account
hub / github.com/dagger/dagger / from_

Method from_

sdk/python/src/dagger/client/gen.py:2330–2353  ·  view source on GitHub ↗

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,
    )

Source from the content-addressed store, hash-verified

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.

Callers 15

echoMethod · 0.80
pendingMethod · 0.80
echoMethod · 0.80
lintMethod · 0.80
unitMethod · 0.80
passing_checkMethod · 0.80
failing_checkMethod · 0.80
passing_containerMethod · 0.80
failing_containerMethod · 0.80
helloMethod · 0.80
databaseMethod · 0.80
webMethod · 0.80

Calls 3

ArgClass · 0.90
_selectMethod · 0.80
ContainerClass · 0.70

Tested by 15

test_execute_timeoutFunction · 0.64
test_query_errorFunction · 0.64
test_no_path_query_errorFunction · 0.64
test_exec_errorFunction · 0.64
test_containerFunction · 0.64
test_object_sequenceFunction · 0.64
test_container_withFunction · 0.64
test_container_syncFunction · 0.64
test_container_awaitableFunction · 0.64