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

Method container

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

Creates a scratch container, with no image or metadata. To pull an image, follow up with the "from" function. Parameters ---------- platform: Platform to initialize the container with. Defaults to the native platform of the current engine

(
        self,
        *,
        platform: Platform | None = None,
    )

Source from the content-addressed store, hash-verified

12802 return Cloud(_ctx)
12803
12804 def container(
12805 self,
12806 *,
12807 platform: Platform | None = None,
12808 ) -> Container:
12809 """Creates a scratch container, with no image or metadata.
12810
12811 To pull an image, follow up with the "from" function.
12812
12813 Parameters
12814 ----------
12815 platform:
12816 Platform to initialize the container with. Defaults to the native
12817 platform of the current engine
12818 """
12819 _args = [
12820 Arg("platform", platform, None),
12821 ]
12822 _ctx = self._select("container", _args)
12823 return Container(_ctx)
12824
12825 def current_env(self) -> Env:
12826 """Returns the current environment

Callers 15

container_echoMethod · 0.45
grep_dirMethod · 0.45
containerEchoMethod · 0.45
grepDirMethod · 0.45
json_convertMethod · 0.45
testContainerMethod · 0.45
testErrorMethod · 0.45
testListMethod · 0.45
containerEchoMethod · 0.45
grepDirMethod · 0.45
mainMethod · 0.45
mainMethod · 0.45

Calls 3

ArgClass · 0.90
_selectMethod · 0.80
ContainerClass · 0.70

Tested by 7

containerEchoMethod · 0.36
grepDirMethod · 0.36
json_convertMethod · 0.36
testContainerMethod · 0.36
testErrorMethod · 0.36
testListMethod · 0.36
mainMethod · 0.36