Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{
Use: "ctnr",
Short: "a lightweight container engine",
Long: `ctnr is a lightweight OCI container engine built around runc.
It supports container and image management and aims to run in every linux environment.`,
PersistentPreRun: preRun,
}
RootCmd represents the base command when called without any subcommands
Functions ¶
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func ParseBindMount ¶
func ParseBindMount(expr string) (r model.VolumeMount, err error)
Parses a volume mount. See https://docs.docker.com/storage/volumes/#choose-the--v-or---mount-flag
func ParseMount ¶
func ParseMount(expr string) (r model.VolumeMount, err error)
Parses a docker-like mount expression or falls back to the docker-like volume expression. See https://docs.docker.com/storage/bind-mounts/#choosing-the--v-or-mount-flag
Types ¶
type UsageError ¶
type UsageError string
func (UsageError) Error ¶
func (err UsageError) Error() string
Click to show internal directories.
Click to hide internal directories.