Docker Community Forums

Share and learn in the Docker community.

AWS: Correct way to mount volume on host path on EBS


(MJ Networks GmbH) #1

Every EC2 instances has a certain EBS volume mounted, where e.g. the /var/lib/docker seems is located.
To allow our containers to use this storage we currently use e.g. /var/lib/docker/elasticsearch.

We tried /mnt/ /dev/xvdb etc - but nothing worked.
What is the offical way to hit the external volume?