Merge pull request #1040 from brendandburns/hostname

Switch the hostname in a container to be the pod id.
pull/6/head
Clayton Coleman 2014-08-26 15:02:05 -04:00
commit 7487f9a951
1 changed files with 1 additions and 1 deletions

View File

@ -303,7 +303,7 @@ func (kl *Kubelet) runContainer(pod *Pod, container *api.Container, podVolumes v
Cmd: container.Command,
Env: envVariables,
ExposedPorts: exposedPorts,
Hostname: container.Name,
Hostname: pod.Name,
Image: container.Image,
Memory: int64(container.Memory),
CpuShares: int64(milliCPUToShares(container.CPU)),