When I first set things up, docker-sync start ran in daemon mode, but now I can't get it to run in daemon mode at all
docker-machine
default
version: "2"
syncs:
app-sync:
src: './'
OSX 10.10.4
docker-sync 0.4.6
I was able to run things in daemon mode (as the default) initially, but after I made changes to my docker-sync.yml and ran docker-sync clean && docker-sync start I get this:
$ docker-sync start
ok Starting unison for sync app-sync
Then it just hangs there as it's running in the foreground.
Logs:
$ docker-sync logs
error docker-sync is not running in daemon mode for this configuration
I have tried running docker-sync clean/start, docker-sync-daemon clean/start, docker-sync --daemon clean/start, but I just can't get it to run in daemon mode anymore.
Any ideas?
Please restart you Mac + remove the .docker-sync folder in the project folder
so there wasn't any .docker-sync folder left over, but I restarted my mac, deleted ~/.docker-sync-global.yml and also deleted the homebrew packages and reinstalled the gem. Still not running in daemon mode 馃槥
Try starting it as a stack and see if it gives you more output. I've had an error in my docker-sync.yml file and it was failing quietly in the background.
Closing due to inactivity
I'm seeing this issue too. It happened right after I ran out of disk space and had to force docker to shutdown because it'd hung so god knows what bad data might be left on disk somewhere.
I've done the above (run clean, removed the docker sync folder and ~ config file, uninstalled docker-sync (and unison), reinstalled and I still can't get it to daemonize.
Also, even when running foreground, it isn't syncing the file changes from my host machine.
try to eliminate all dangling containers @seanhandley
docker kill $(docker ps -q)
docker rm $(docker ps -q -a)
run a clean, rm the .docker-sync folder and try to start it all again. Hope that helps
Thanks @EugenMayer
I think this issue is different so I've posted here: https://github.com/EugenMayer/docker-sync/issues/514
Most helpful comment
try to eliminate all dangling containers @seanhandley
docker kill $(docker ps -q)docker rm $(docker ps -q -a)run a clean, rm the .docker-sync folder and try to start it all again. Hope that helps