High available Docker volume

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

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

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

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

  • Docker engine swarm mode | Alternative of “extra_hosts” used in compose
  • Communication between two flask services in Docker
  • Docker containers communication
  • How to handle differences in Dockerfile for dev/prod
  • Graylog 2.2.0-beta.1 in Docker with UDP input: Unable to load default stream
  • The npm command is not found in my NodeJS docker container
  • Thanks

  • Rethinkdb race conditions creating table
  • Does docker support command aliases similar to Git aliases?
  • How to debug Docker?
  • Securing docker containers
  • Postgres - testing database connection in bash
  • docker behind proxy doesn't use system proxy info
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.