replace over-write with overwrite
parent
8e696da904
commit
826f1852ab
|
@ -45,7 +45,7 @@ var (
|
|||
pull bool
|
||||
imgDaemon bool
|
||||
imgRemote bool
|
||||
overWrite bool
|
||||
overwrite bool
|
||||
tag string
|
||||
push bool
|
||||
dockerFile string
|
||||
|
@ -131,7 +131,7 @@ var loadImageCmd = &cobra.Command{
|
|||
if imgDaemon || imgRemote {
|
||||
image.UseDaemon(imgDaemon)
|
||||
image.UseRemote(imgRemote)
|
||||
if err := machine.CacheAndLoadImages(args, []*config.Profile{profile}, overWrite); err != nil {
|
||||
if err := machine.CacheAndLoadImages(args, []*config.Profile{profile}, overwrite); err != nil {
|
||||
exit.Error(reason.GuestImageLoad, "Failed to load image", err)
|
||||
}
|
||||
} else if local {
|
||||
|
@ -249,7 +249,7 @@ func init() {
|
|||
loadImageCmd.Flags().BoolVarP(&pull, "pull", "", false, "Pull the remote image (no caching)")
|
||||
loadImageCmd.Flags().BoolVar(&imgDaemon, "daemon", false, "Cache image from docker daemon")
|
||||
loadImageCmd.Flags().BoolVar(&imgRemote, "remote", false, "Cache image from remote registry")
|
||||
loadImageCmd.Flags().BoolVar(&overWrite, "over-write", true, "Over write the existing image if the name:tag of the images are the same")
|
||||
loadImageCmd.Flags().BoolVar(&overwrite, "overwrite", true, "Overwrite the existing image if the name:tag of the images are the same")
|
||||
imageCmd.AddCommand(loadImageCmd)
|
||||
imageCmd.AddCommand(removeImageCmd)
|
||||
buildImageCmd.Flags().StringVarP(&tag, "tag", "t", "", "Tag to apply to the new image (optional)")
|
||||
|
|
|
@ -143,7 +143,7 @@ minikube image load image.tar
|
|||
|
||||
```
|
||||
--daemon Cache image from docker daemon
|
||||
--over-write Over write the existing image if the name:tag of the images are the same (default true)
|
||||
--overwrite Overwrite the existing image if the name:tag of the images are the same (default true)
|
||||
--pull Pull the remote image (no caching)
|
||||
--remote Cache image from remote registry
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue