DockerCache doesn't get containers at startup.

Fixes #5092.
This commit is contained in:
Victor Marmol 2015-03-05 16:25:13 -08:00
parent 2902028476
commit 33e6c3ebb3

View File

@ -26,14 +26,8 @@ type DockerCache interface {
}
func NewDockerCache(client DockerInterface) (DockerCache, error) {
containers, err := GetKubeletDockerContainers(client, false)
if err != nil {
return nil, err
}
return &dockerCache{
client: client,
cacheTime: time.Now(),
containers: containers,
updatingCache: false,
}, nil
}