Set the default command to invoke for the container's terminal API. Parameters ---------- args: The args of the command. experimental_privileged_nesting: Provides Dagger access to the executed command. insecure_root_capabilities:
(
self,
args: list[str],
*,
experimental_privileged_nesting: bool | None = False,
insecure_root_capabilities: bool | None = False,
)
| 2833 | return Container(_ctx) |
| 2834 | |
| 2835 | def with_default_terminal_cmd( |
| 2836 | self, |
| 2837 | args: list[str], |
| 2838 | *, |
| 2839 | experimental_privileged_nesting: bool | None = False, |
| 2840 | insecure_root_capabilities: bool | None = False, |
| 2841 | ) -> Self: |
| 2842 | """Set the default command to invoke for the container's terminal API. |
| 2843 | |
| 2844 | Parameters |
| 2845 | ---------- |
| 2846 | args: |
| 2847 | The args of the command. |
| 2848 | experimental_privileged_nesting: |
| 2849 | Provides Dagger access to the executed command. |
| 2850 | insecure_root_capabilities: |
| 2851 | Execute the command with all root capabilities. This is similar to |
| 2852 | running a command with "sudo" or executing "docker run" with the " |
| 2853 | --privileged" flag. Containerization does not provide any security |
| 2854 | guarantees when using this option. It should only be used when |
| 2855 | absolutely necessary and only with trusted commands. |
| 2856 | """ |
| 2857 | _args = [ |
| 2858 | Arg("args", args), |
| 2859 | Arg( |
| 2860 | "experimentalPrivilegedNesting", experimental_privileged_nesting, False |
| 2861 | ), |
| 2862 | Arg("insecureRootCapabilities", insecure_root_capabilities, False), |
| 2863 | ] |
| 2864 | _ctx = self._select("withDefaultTerminalCmd", _args) |
| 2865 | return Container(_ctx) |
| 2866 | |
| 2867 | def with_directory( |
| 2868 | self, |