0

我正在探索使用 Docker 和 Docker Machine 来简化我的工作流程,以便在 AWS 中启动环境以支持数据分析和机器学习任务。我已经解决了大部分细节,但有两个悬而未决的问题:

1) 在 AWS 中使用 Docker Machine 启动 VM 时,如何指定要附加到该 VM 的 EBS 卷?

2) 如何将 EBS 卷映射到 VM 上运行的容器中的路径?

感谢你的协助!

4

1 回答 1

1

I found this writeup to be helpful: https://theholyjava.wordpress.com/2015/06/02/mounting-an-ebs-volume-to-docker-on-aws-elastic-beanstalk/

You can specify volumes to mount in your dockerrun.aws.json file. Make sure to also mount the volume in your dockerfile as well, with something like VOLUME: ["/var/ebs/path"]. That should take care of mounting the sotarge to a path in the container.

BTW this is a cool container for attaching an EBS volume to the instance.

于 2015-09-09T19:49:37.147 回答