Fix nil docker client (how did this ever work???)

This commit is contained in:
Daniel Smith 2014-11-04 16:58:37 -08:00
parent 652a0ce4db
commit 4b16e979e6
2 changed files with 3 additions and 3 deletions

View File

@ -207,8 +207,8 @@ func (d *dockerContainerCommandRunner) RunInContainer(containerID string, cmd []
// NewDockerContainerCommandRunner creates a ContainerCommandRunner which uses nsinit to run a command // NewDockerContainerCommandRunner creates a ContainerCommandRunner which uses nsinit to run a command
// inside a container. // inside a container.
func NewDockerContainerCommandRunner() ContainerCommandRunner { func NewDockerContainerCommandRunner(client DockerInterface) ContainerCommandRunner {
return &dockerContainerCommandRunner{} return &dockerContainerCommandRunner{client: client}
} }
func (p dockerPuller) Pull(image string) error { func (p dockerPuller) Pull(image string) error {

View File

@ -73,7 +73,7 @@ func NewMainKubelet(
resyncInterval: ri, resyncInterval: ri,
networkContainerImage: ni, networkContainerImage: ni,
podWorkers: newPodWorkers(), podWorkers: newPodWorkers(),
runner: dockertools.NewDockerContainerCommandRunner(), runner: dockertools.NewDockerContainerCommandRunner(dc),
httpClient: &http.Client{}, httpClient: &http.Client{},
pullQPS: pullQPS, pullQPS: pullQPS,
pullBurst: pullBurst, pullBurst: pullBurst,