首页 > 其他 > 详细

docker 使用Data Volume 共享文件

时间:2014-11-14 13:51:48      阅读:219      评论:0      收藏:0      [点我收藏+]

Adding a data volume

You can add a data volume to a container using the -v flag with the docker run command. You can use the -v multiple times in a single docker run to mount multiple data volumes. Let‘s mount a single volume now in our web application container.

$ sudo docker run  -P --name web -v  ~/Workspace:/workspace ubuntu

You can then use the --volumes-from flag to mount the /dbdata volume in another container.

$ sudo docker run -it --volumes-from workspace -v ~/Workspace ubuntu /bin/bash
 

docker 使用Data Volume 共享文件

原文:http://www.cnblogs.com/superping/p/4096915.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!