Blog
Thoughts on engineering, design, and building great products.
Volume: ephemeral, hostPath và projected
DevOpsStorage
Volume: ephemeral, hostPath và projected
File trong container biến mất khi container restart, và hai container trong một pod không tự thấy file của nhau. Volume giải cả hai. Bài này mở Part IX storage bằng các volume gắn thẳng vào pod: emptyDir (vùng nhớ tạm chia sẻ trong pod), hostPath (mượn thư mục của node), và projected (gộp configMap/secret/downwardAPI/token vào một chỗ) — test thật từng cái, làm rõ cái nào sống theo container, cái nào theo pod, cái nào theo node.
K
KaiMay 24, 2026Volumes và Bind Mount: Lưu Dữ Liệu Bền V...
DevOpsDocker
Volumes và Bind Mount: Lưu Dữ Liệu Bền Vững
Dữ liệu trong container biến mất khi container bị xóa. Bài này giải quyết: named volume do Docker quản lý và bind mount gắn thẳng thư mục host, khi nào dùng cái nào, kèm ví dụ chứng minh dữ liệu sống sót.
K
KaiMay 23, 2026