Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{
Use: "cntnr",
Short: "a lightweight container engine",
Long: `cntnr is a lightweight OCI-compliant container engine.
It supports single image and container operations as well as high-level service composition.`,
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.