Improved detection of router container restart

Use the container name in addition to the entrypoint to avoid triggering
reattachment unnecessarily.
This commit is contained in:
Adam Harrison committed 2015-10-27 14:41:26 +00:00
1 parent 94d7f33a03
commit 4792fe6391
2 files changed
+3 -1

No files matched your search

+1
View File
@@ -21,6 +21,7 @@ var (
containerIDRegexp = regexp.MustCompile("^(/v[0-9\\.]*)?/containers/([^/]*)/.*")
weaveWaitEntrypoint = []string{"/w/w"}
weaveEntrypoint = "/home/weave/weaver"
weaveContainerName = "/weave"
)
func callWeave(args ...string) ([]byte, []byte, error) {