{"modulePath":"github.com/rancher/docker-cli","version":"v0.0.0-20190201110649-896ff57b300c","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package container\n\n## Functions\n\n```go\nfunc DiffFormatWrite(ctx formatter.Context, changes []container.ContainerChangeResponseItem) error\n```\nDiffFormatWrite writes formatted diff using the Context\n\n```go\nfunc ForwardAllSignals(ctx context.Context, cli command.Cli, cid string) chan os.Signal\n```\nForwardAllSignals forwards signals to the container\n\n```go\nfunc MonitorTtySize(ctx context.Context, cli command.Cli, id string, isExec bool) error\n```\nMonitorTtySize updates the container tty size when the terminal tty changes size\n\n```go\nfunc NewAttachCommand(dockerCli command.Cli) *cobra.Command\n```\nNewAttachCommand creates a new cobra.Command for \\`docker attach\\`\n\n```go\nfunc NewCommitCommand(dockerCli command.Cli) *cobra.Command\n```\nNewCommitCommand creates a new cobra.Command for \\`docker commit\\`\n\n```go\nfunc NewContainerCommand(dockerCli command.Cli) *cobra.Command\n```\nNewContainerCommand returns a cobra command for \\`container\\` subcommands\n\n```go\nfunc NewCopyCommand(dockerCli command.Cli) *cobra.Command\n```\nNewCopyCommand creates a new \\`docker cp\\` command\n\n```go\nfunc NewCreateCommand(dockerCli command.Cli) *cobra.Command\n```\nNewCreateCommand creates a new cobra.Command for \\`docker create\\`\n\n```go\nfunc NewDiffCommand(dockerCli command.Cli) *cobra.Command\n```\nNewDiffCommand creates a new cobra.Command for \\`docker diff\\`\n\n```go\nfunc NewDiffFormat(source string) formatter.Format\n```\nNewDiffFormat returns a format for use with a diff Context\n\n```go\nfunc NewExecCommand(dockerCli command.Cli) *cobra.Command\n```\nNewExecCommand creates a new cobra.Command for \\`docker exec\\`\n\n```go\nfunc NewExportCommand(dockerCli command.Cli) *cobra.Command\n```\nNewExportCommand creates a new \\`docker export\\` command\n\n```go\nfunc NewKillCommand(dockerCli command.Cli) *cobra.Command\n```\nNewKillCommand creates a new cobra.Command for \\`docker kill\\`\n\n```go\nfunc NewLogsCommand(dockerCli command.Cli) *cobra.Command\n```\nNewLogsCommand creates a new cobra.Command for \\`docker logs\\`\n\n```go\nfunc NewPauseCommand(dockerCli command.Cli) *cobra.Command\n```\nNewPauseCommand creates a new cobra.Command for \\`docker pause\\`\n\n```go\nfunc NewPortCommand(dockerCli command.Cli) *cobra.Command\n```\nNewPortCommand creates a new cobra.Command for \\`docker port\\`\n\n```go\nfunc NewPruneCommand(dockerCli command.Cli) *cobra.Command\n```\nNewPruneCommand returns a new cobra prune command for containers\n\n```go\nfunc NewPsCommand(dockerCli command.Cli) *cobra.Command\n```\nNewPsCommand creates a new cobra.Command for \\`docker ps\\`\n\n```go\nfunc NewRenameCommand(dockerCli command.Cli) *cobra.Command\n```\nNewRenameCommand creates a new cobra.Command for \\`docker rename\\`\n\n```go\nfunc NewRestartCommand(dockerCli command.Cli) *cobra.Command\n```\nNewRestartCommand creates a new cobra.Command for \\`docker restart\\`\n\n```go\nfunc NewRmCommand(dockerCli command.Cli) *cobra.Command\n```\nNewRmCommand creates a new cobra.Command for \\`docker rm\\`\n\n```go\nfunc NewRunCommand(dockerCli command.Cli) *cobra.Command\n```\nNewRunCommand create a new \\`docker run\\` command\n\n```go\nfunc NewStartCommand(dockerCli command.Cli) *cobra.Command\n```\nNewStartCommand creates a new cobra.Command for \\`docker start\\`\n\n```go\nfunc NewStatsCommand(dockerCli command.Cli) *cobra.Command\n```\nNewStatsCommand creates a new cobra.Command for \\`docker stats\\`\n\n```go\nfunc NewStatsFormat(source, osType string) formatter.Format\n```\nNewStatsFormat returns a format for rendering an CStatsContext\n\n```go\nfunc NewStopCommand(dockerCli command.Cli) *cobra.Command\n```\nNewStopCommand creates a new cobra.Command for \\`docker stop\\`\n\n```go\nfunc NewTopCommand(dockerCli command.Cli) *cobra.Command\n```\nNewTopCommand creates a new cobra.Command for \\`docker top\\`\n\n```go\nfunc NewUnpauseCommand(dockerCli command.Cli) *cobra.Command\n```\nNewUnpauseCommand creates a new cobra.Command for \\`docker unpause\\`\n\n```go\nfunc NewUpdateCommand(dockerCli command.Cli) *cobra.Command\n```\nNewUpdateCommand creates a new cobra.Command for \\`docker update\\`\n\n```go\nfunc NewWaitCommand(dockerCli command.Cli) *cobra.Command\n```\nNewWaitCommand creates a new cobra.Command for \\`docker wait\\`\n\n```go\nfunc RunPrune(dockerCli command.Cli, all bool, filter opts.FilterOpt) (uint64, string, error)\n```\nRunPrune calls the Container Prune API This returns the amount of space reclaimed and a detailed output string\n\n## Types\n\n```go\ntype Stats struct {\n\tStatsEntry\n\t// contains filtered or unexported fields\n}\n```\nStats represents an entity to store containers statistics synchronously\n\n```go\nfunc NewStats(container string) *Stats\n```\nNewStats returns a new Stats entity and sets in it the given name\n\n```go\nfunc (cs *Stats) GetError() error\n```\nGetError returns the container statistics error. This is used to determine whether the statistics are valid or not\n\n```go\nfunc (cs *Stats) GetStatistics() StatsEntry\n```\nGetStatistics returns container statistics with other meta data such as the container name\n\n```go\nfunc (cs *Stats) SetError(err error)\n```\nSetError sets container statistics error\n\n```go\nfunc (cs *Stats) SetErrorAndReset(err error)\n```\nSetErrorAndReset zeroes all the container statistics and store the error. It is used when receiving time out error during statistics collecting to reduce lock overhead\n\n```go\nfunc (cs *Stats) SetStatistics(s StatsEntry)\n```\nSetStatistics set the container statistics\n\n```go\ntype StatsEntry struct {\n\tContainer        string\n\tName             string\n\tID               string\n\tCPUPercentage    float64\n\tMemory           float64 // On Windows this is the private working set\n\tMemoryLimit      float64 // Not used on Windows\n\tMemoryPercentage float64 // Not used on Windows\n\tNetworkRx        float64\n\tNetworkTx        float64\n\tBlockRead        float64\n\tBlockWrite       float64\n\tPidsCurrent      uint64 // Not used on Windows\n\tIsInvalid        bool\n}\n```\nStatsEntry represents represents the statistics data collected from a container\n\n","path":"github.com/rancher/docker-cli/cli/command/container","name":"container","synopsis":"","isRedistributable":true}
