Documentation ¶
Index ¶
- Constants
- func AddDockerFlags(options *Options, p *pflag.FlagSet, cli *command.DockerCli)
- func DoDev(ctx context.Context, option *Options, conf *util.SshConfig, ...) error
- func ForwardAllSignals(ctx context.Context, apiClient client.ContainerAPIClient, cid string, ...)
- func MonitorTtySize(ctx context.Context, cli command.Cli, id string, isExec bool) error
- func NewCreateCommand(dockerCli command.Cli) *cobra.Command
- func NewRunCommand(dockerCli command.Cli) *cobra.Command
- type ConfigList
- type ConnectMode
- type Options
- type RunConfig
Constants ¶
View Source
const ( PullImageAlways = "always" PullImageMissing = "missing" // Default (matches previous behavior) PullImageNever = "never" )
Pull constants
Variables ¶
This section is empty.
Functions ¶
func AddDockerFlags ¶ added in v2.2.5
func ForwardAllSignals ¶ added in v2.2.5
func ForwardAllSignals(ctx context.Context, apiClient client.ContainerAPIClient, cid string, sigc <-chan os.Signal)
ForwardAllSignals forwards signals to the container
The channel you pass in must already be setup to receive any signals you want to forward.
func MonitorTtySize ¶ added in v2.2.5
MonitorTtySize updates the container tty size when the terminal tty changes size
func NewCreateCommand ¶ added in v2.2.5
NewCreateCommand creates a new cobra.Command for `docker create`
Types ¶
type ConnectMode ¶
type ConnectMode string
const ( ConnectModeContainer ConnectMode = "container" ConnectModeHost ConnectMode = "host" )
type Options ¶
type Options struct { Headers map[string]string Namespace string Workload string Factory cmdutil.Factory ContainerName string NoProxy bool ExtraRouteInfo handler.ExtraRouteInfo ConnectMode ConnectMode Engine config.Engine // docker options DevImage string Options runOptions Copts *containerOptions // inner Cli *client.Client DockerCli *command.DockerCli // contains filtered or unexported fields }
func (*Options) AddRollbackFunc ¶
func (*Options) GetExposePort ¶ added in v2.2.5
func (*Options) GetRollbackFuncList ¶
Click to show internal directories.
Click to hide internal directories.