Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
- concept
Naming container mount data volume, data sharing other container by mounting the (parent container), the container mount data volume, the data volume container called
- General Introduction
Suppose now that we have the presence of a data volume container doc01, and then we make a new container to inherit doc02 doc01, doc02 it will also have a data volume.
- command
docker run -it --name dc02 --volumes-from dc01 centos
Pass configuration information between a container, the volume data life cycle continues until the container is not used it so far
Recommended: https://blog.csdn.net/xiaojin21cen/article/details/84564973