- Deployment with Docker
- Srdjan Grubor
- 103字
- 2021-07-02 23:22:14
VOLUMEs and data that lives outside of the container
But what if we want to add files that live outside of the container that might need to persist even when the container dies? That is where the VOLUME directive comes into play. With VOLUMEs, any time you start the container, this path is actually assumed to be mounted from outside of the container, and if none is provided, one will be created and attached for you automatically.
Here, we are assigning our /srv/www/html/external path to this unnamed volume, but we will reserve majority of our detailed discussion about volumes for later chapters.
推薦閱讀
- Seven NoSQL Databases in a Week
- Visual FoxPro 6.0數據庫與程序設計
- Effective DevOps with AWS
- Creo Parametric 1.0中文版從入門到精通
- Blender 3D Printing by Example
- 分析力!專業Excel的制作與分析實用法則
- HTML5 Canvas Cookbook
- 氣動系統裝調與PLC控制
- 網絡服務搭建、配置與管理大全(Linux版)
- FPGA/CPLD應用技術(Verilog語言版)
- Mastering Predictive Analytics with scikit:learn and TensorFlow
- 企業級Web開發實戰
- 菜鳥起飛電腦組裝·維護與故障排查
- PowerPoint 2010幻燈片制作高手速成
- 大型機系統應用基礎