Add warning for cache add

pull/10366/head
Priya Wadhwa 2021-02-09 13:36:40 -08:00
parent 53887f407c
commit e8945f2934
1 changed files with 1 additions and 0 deletions

View File

@ -50,6 +50,7 @@ var addCacheCmd = &cobra.Command{
Short: "Add an image to local cache.",
Long: "Add an image to local cache.",
Run: func(cmd *cobra.Command, args []string) {
out.WarningT("\"minikube cache\" will be deprecated in upcoming versions, please switch to \"minikube image load\"")
// Cache and load images into docker daemon
if err := machine.CacheAndLoadImages(args, cacheAddProfiles()); err != nil {
exit.Error(reason.InternalCacheLoad, "Failed to cache and load images", err)