create

package
v0.11.0-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package create provides the container create command.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdCreate

func NewCmdCreate(f *cmdutil.Factory, runF func(context.Context, *CreateOptions) error) *cobra.Command

NewCmdCreate creates a new container create command.

Types

type CreateOptions

type CreateOptions struct {
	*shared.ContainerCreateOptions

	IOStreams       *iostreams.IOStreams
	TUI             *tui.TUI
	Client          func(context.Context) (*docker.Client, error)
	Config          func() (config.Config, error)
	ProjectManager  func() (project.ProjectManager, error)
	ProjectRegistry func() (*project.Registry, error)
	HostProxy       func() hostproxy.HostProxyService
	Prompter        func() *prompter.Prompter
	Logger          func() (*logger.Logger, error)
	Version         string
	// contains filtered or unexported fields
}

CreateOptions holds options for the create command. It embeds ContainerCreateOptions for shared container configuration.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL