Merge pull request #396 from brendandburns/hostname

Add Hostname to the docker run command.
This commit is contained in:
Tim Hockin 2014-07-10 12:28:30 -07:00
commit 32bcdbeb53

View File

@ -387,6 +387,7 @@ func (kl *Kubelet) runContainer(manifest *api.ContainerManifest, container *api.
opts := docker.CreateContainerOptions{
Name: buildDockerName(manifest, container),
Config: &docker.Config{
Hostname: container.Name,
Image: container.Image,
ExposedPorts: exposedPorts,
Env: envVariables,