- 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.
推薦閱讀
- 我的J2EE成功之路
- 深度學(xué)習(xí)中的圖像分類與對(duì)抗技術(shù)
- 智能工業(yè)報(bào)警系統(tǒng)
- 自動(dòng)生產(chǎn)線的拆裝與調(diào)試
- 工業(yè)機(jī)器人安裝與調(diào)試
- Google SketchUp for Game Design:Beginner's Guide
- Deep Reinforcement Learning Hands-On
- INSTANT Heat Maps in R:How-to
- Web編程基礎(chǔ)
- 精通ROS機(jī)器人編程(原書第2版)
- 數(shù)據(jù)清洗
- 機(jī)器人剛?cè)狁詈蟿?dòng)力學(xué)
- Raspberry Pi 3 Projects for Java Programmers
- Spark Streaming實(shí)時(shí)流式大數(shù)據(jù)處理實(shí)戰(zhàn)
- 暗戰(zhàn)強(qiáng)人:黑客及反黑客工具快速精通