High available Docker volume

I wanted to know if it’s possible to make an highly available Docker volume in Compose like so :

image: ubuntu
  - /var/lib/data
command: sleep infinity

    image: ubuntu
      - /var/lib/data
    command: sleep infinity

My plan is to mount this volume with volume_from on all my other container.

  • How to ssh+bash into Docker container in a single command
  • How to create a volume with given size in flocker?
  • Docker data volume container. I can't seem to get to backup
  • Can You Modify the Base Image Directly?
  • Docker cp: Error response from daemon: lstat no such file or directory
  • change docker instance run arguments
  • Thanks

  • Trying to send messages between Docker containers using rabbitmq
  • Docker compose error “In file './docker-compose.yml', service 'punjab' must be a mapping not a string.”
  • ELF Header or installation issue with bcrypt in Docker container
  • How to create a Dockerfile for cassandra (or any database) that includes a schema?
  • System.InvalidOperationException: Unable to resolve project 'HelloMvc6' from /ap p/src/HelloMvc6
  • Docker mount a volume as root
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.