ibuildthecloud / systemd-docker

Wrapper for "docker run" to handle systemd quirks
Apache License 2.0
721 stars 111 forks source link

Service dependencies cause startup hanging #32

Open marclennox opened 9 years ago

marclennox commented 9 years ago

I stumbled across this project last week and decided to try it out. I'm running Docker 1.6.2 on the latest CoreOS stable release.

Things seem to work properly for most of my containers, but I've noticed that certain services won't start from time-to-time.

It seems to be isolated to containers that have a "--link" to another container. Note that in these cases I use Requires= and After= to make sure systemd knows about the start order dependency.

There isn't much in the logs, the systemd start command simply hangs. Sometimes the docker container has actually started and systemd doesn't recognize it, sometimes it hasn't started the container.

Any ideas?