configs.go 902 B

123456789101112131415161718
  1. package types // import "github.com/docker/docker/api/types"
  2. // ExecConfig is a small subset of the Config struct that holds the configuration
  3. // for the exec feature of docker.
  4. type ExecConfig struct {
  5. User string // User that will run the command
  6. Privileged bool // Is the container in privileged mode
  7. Tty bool // Attach standard streams to a tty.
  8. ConsoleSize *[2]uint `json:",omitempty"` // Initial console size [height, width]
  9. AttachStdin bool // Attach the standard input, makes possible user interaction
  10. AttachStderr bool // Attach the standard error
  11. AttachStdout bool // Attach the standard output
  12. Detach bool // Execute in detach mode
  13. DetachKeys string // Escape keys for detach
  14. Env []string // Environment variables
  15. WorkingDir string // Working directory
  16. Cmd []string // Execution commands and args
  17. }