diff --git a/dockersource.go b/dockersource.go index b716d80..a9c267b 100644 --- a/dockersource.go +++ b/dockersource.go @@ -31,8 +31,8 @@ func NewDockerContainerSource() *DockerContainerSource { containers: make(map[string]*Container), needsRefresh: make(chan string, 60), } - cm.refreshAll() go cm.Loop() + cm.refreshAll() go cm.watchEvents() return cm }