Can a single EBS be shared across multiple Amazon Docker Containers?

I want to copy some data from S3 to EBS when the FIRST Docker Container spins off. For subsequent spawned Docker Containers, I want to share the data I copied on the EBS. I do not want data to be duplicated for every Docker Container.

Can anyone tell me if a single EBS can be shared across multiple Amazon Docker Containers ?

  • AWS Configure Bash One Liner
  • Can't access docker image from EC2 server
  • Does AWS ECS support per container dynamic scalability?
  • AWS ECS agent cannot find /etc/resolv.conf when launching and cannot add instances to an ECS cluster
  • Mesos/Marathon on EC2 agents hostnames not accessible
  • Hibernate database configuration for cloud deployment
  • how to reach docker containers with network host from w10 pc?
  • Wercker setup environment takes too long and make the build fail
  • External Server mysql_connect No route to host
  • Connecting to Redis running in Docker Container from Host machine
  • Deploying node.js web app along with docker
  • Docker not supported on 32-bit OS
  • 2 Solutions collect form web for “Can a single EBS be shared across multiple Amazon Docker Containers?”

    Yes, multiple docker containers can share data located on an EBS volume attached to an EC2 instance if they are running on that EC2 instance.

    This is not possible with ECS as several EC2 instances would be involved.

    EBS can only be linked to a single ec2 instance

    • if you have docker containers spinned on single ec2 instance, it will work
    • If you have docker containers spinned on a ec2 cluster with multiple ec2 instances, it will not work; an option in such case would be to use EFS
    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.