# Data persistant in docker swarm cluster

**URL:** <https://forums.percona.com/t/data-persistant-in-docker-swarm-cluster/5091>\
**Category:** Percona XtraBackup\
**Created:** [September 17, 2016, 10:00am UTC](https://forums.percona.com/t/data-persistant-in-docker-swarm-cluster/5091 "2016-09-17T10:00:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![James\_Douglas](https://avatars.discourse-cdn.com/v4/letter/j/6de8d8/32.png) [@James\_Douglas](https://forums.percona.com/u/James_Douglas)\
**Post date:** [September 17, 2016, 10:00am UTC](https://forums.percona.com/t/data-persistant-in-docker-swarm-cluster/5091/1 "2016-09-17T10:00:40Z")

</div>

Hi  
I have problem with understanding how to create pxc with data persistent.  
I have 3 replicas on 3 different nodes and mounted directory from host.  
This works ok till I kill one of nodes. Docker swarm tries to create container on another host where one of replicas is working.  
Now I have problem that two containers access same folder which is undesirable outcome.  
Another scenario is to start 5 replicas on the same host. How to work with data in that scenario?
