minikube/docs/cache.md

21 lines
726 B
Markdown
Raw Normal View History

# Caching Images
2017-12-01 00:02:44 +00:00
Minikube supports caching non-minikube images using the `minikube cache` command. Images can be added to the cache by running `minikube cache add <img>`, and deleted by running `minikube cache delete <img>`.
2017-12-06 03:48:56 +00:00
Images in the cache will be loaded on `minikube start`. If you want to list all available cached images, you can use `minikube cache list` command to list. Below is an example of this functionality:
```shell
# cache a image into $HOME/.minikube/cache/images
$ minikube cache add ubuntu:16.04
$ minikube cache add redis:3
# list cached images
$ minikube cache list
2018-01-06 16:46:24 +00:00
redis:3
ubuntu:16.04
# delete cached images
$ minikube cache delete ubuntu:16.04
$ minikube cache delete $(minikube cache list)
2017-12-06 03:48:56 +00:00
```