Documentation
¶
Index ¶
Constants ¶
View Source
const (
// DefaultExecTerm is used for interactive TTY exec when the container has no TERM.
DefaultExecTerm = "xterm-256color"
)
Variables ¶
This section is empty.
Functions ¶
func ExecEnvForTTY ¶ added in v1.0.2
ExecEnvForTTY returns container env with TERM set for interactive exec sessions. An existing container TERM is preserved. When TERM is missing, preferredTerm is used when non-empty; otherwise DefaultExecTerm is injected.
func IsInteractiveShellCommand ¶
IsInteractiveShellCommand reports argv used for local ms exec without an explicit command.
func ShellCommandForScript ¶
ShellCommandForScript runs script inside the container using the best available shell (bash → sh → busybox). For interactive exec default, use ShellCommandInteractive.
func ShellCommandInteractive ¶
func ShellCommandInteractive() []string
ShellCommandInteractive returns argv for an interactive exec session when no command is supplied. Prefers bash, then sh, then busybox.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.