4

In amazon EC2-instance (Amazon Linux AMI 2015.03.0 x86_64 HVM) I mounted EBS volume to /data directory. Now, I have a docker container that I (sudo) run with -v /data:/data. This container creates some files in /data directory. The problem is that all these files are created in shadowed /data directory and not in EBS /data volume.

How to make docker to write into the mounted EBS volume instead, and why this strange behavior happens?

0

Had the same problem. It seems that restarting the docker daemon solves this problem. Otherwise, your files are just shadowed.

  • What's the point of using Docker (at all) if you have to restart the daemon to add a volume? – user3467349 Dec 4 '15 at 6:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.