- 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.
推薦閱讀
- Java編程全能詞典
- Dreamweaver CS3網(wǎng)頁制作融會貫通
- 極簡AI入門:一本書讀懂人工智能思維與應(yīng)用
- 分布式多媒體計算機系統(tǒng)
- 計算機與信息技術(shù)基礎(chǔ)上機指導(dǎo)
- R Data Analysis Projects
- Flink原理與實踐
- Cloudera Hadoop大數(shù)據(jù)平臺實戰(zhàn)指南
- WPF專業(yè)編程指南
- ARM體系結(jié)構(gòu)與編程
- 電氣自動化工程師自學(xué)寶典(基礎(chǔ)篇)
- 微計算機原理及應(yīng)用
- Microsoft 365 Mobility and Security:Exam Guide MS-101
- 單片機硬件接口電路及實例解析
- 數(shù)據(jù)庫技術(shù):Access 2003 計算機網(wǎng)絡(luò)技術(shù)