Docker的数据管理 I. 基本概念 Docker容器一旦删除,其相关的rootf文件系统就会被删除,其容器内的数据将一并删除,为了保存相关数据,Docker提出了数据卷的概念. II. 数据卷 Docker中与数据卷相关的参数: -v=[]; 创建数据卷 --volumes-from; 数据卷容器 1)创建数据卷 -v 参数: * host-dir: 表示host上的目录,如果不存在,Docker会自动在Host上创建该目录: * container-dir:表示容器内部对应的目录,如果不存