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