Skip to Content
Kubernetes即学即用(第二版)
book

Kubernetes即学即用(第二版)

by Brendan Burns, Joe Beda, Kelsey Hightower
June 2021
Intermediate to advanced
300 pages
5h 4m
Chinese
China Electric Power Press Ltd.
Content preview from Kubernetes即学即用(第二版)
创建和运行容器
37
略微有点复杂的方法是设置运行镜像垃圾回收器的
cron
作业。例如,
docker-gc
就是一个常用的镜像垃圾回收器,可以利用
cron
作业每天一次或
每小时一次反复运行该命令,具体频率取决于创建的镜像数量。
2.7
小结
应用程序容器为应用程序提供了整洁的抽象,通过
Docker
镜像格式打包的应
用程序更易于构建、部署和分发。容器还为同一计算机上运行的应用程序提
供了隔离,有效地避免了依赖项冲突。
在后续章节中,我们将介绍如何挂载外部目录,这意味着我们不仅可以在容
器中运行无状态应用程序,而且还可以运行
mysql
等应用程序以及其他生成
大量数据的应用程序。
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

PyTorch深度学习

PyTorch深度学习

Posts & Telecom Press, Vishnu Subramanian
Python数据分析

Python数据分析

Posts & Telecom Press, Ivan Idris
Python贝叶斯分析(第2版)

Python贝叶斯分析(第2版)

Posts & Telecom Press, Osvaldo Martin
Python高级编程(第2版)

Python高级编程(第2版)

Posts & Telecom Press, Michał Jaworski, Tarek Ziadé

Publisher Resources

ISBN: 9787519856762