如何更改docker默认存储大小
我一直遇到很多 kubectl
空间不足的问题。如何增加分配给 docker 的默认存储大小?
minikube 的建议都不起作用。
1. Run "docker system prune" to remove unused Docker data (optionally with "-a")
2. Increase the storage allocated to Docker for Desktop by clicking on:
Docker icon > Preferences > Resources > Disk Image Size
3. Run "minikube ssh -- docker system prune" if using the Docker container runtime
第二个是不可能从命令行......
I've been having loads of issues with kubectl
not having enough space. How can I increase the default storage size allocated to docker
?
None of minikube recommendations worked.
1. Run "docker system prune" to remove unused Docker data (optionally with "-a")
2. Increase the storage allocated to Docker for Desktop by clicking on:
Docker icon > Preferences > Resources > Disk Image Size
3. Run "minikube ssh -- docker system prune" if using the Docker container runtime
And the second is not possible from command line...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
考虑您的评论
您可以单独指定 minikube 的磁盘分配:
minikube start --memory=8192 --cpus=4 --disk-size=50g
这可以帮助您解决磁盘空间问题,因为默认值是明显更小:
--disk-size string 分配给 minikube VM 的磁盘大小(格式:[],其中unit = b、k、m 或 g)。 (默认“20000mb”)
Taking your comment into consideration
You can specify minikube's disk allocations separately:
minikube start --memory=8192 --cpus=4 --disk-size=50g
Which can help you to work around the disk space issues as the default is significantly smaller:
--disk-size string Disk size allocated to the minikube VM (format: <number>[<unit>], where unit = b, k, m or g). (default "20000mb")