leighmcculloch / docker-unison

A docker data container using Unison for fast folder sync. An alternative to slow boot2docker volumes on OS X.
GNU General Public License v3.0
168 stars 26 forks source link

`/unison` initial state #10

Open alexgorbatchev opened 8 years ago

alexgorbatchev commented 8 years ago

I don't completely understand how to get unison to work at boot time. I'm trying to keep my source folder syncing from local to container. When container starts, it expects the source to be there already. README suggests and my quick test confirms, that upon boot of the container, /unison is empty and needs to be synced to.

What is the suggested to way to work in this scenario? I feel this is a pretty standard setup.

onnimonni commented 8 years ago

I'll just startup the data container first, sync, and then start all of the other containers.

leighmcculloch commented 8 years ago

@alexgorbatchev What would we need to change about the initial state of the docker image to fix this? I'm happy to look into making this initial state easier.