Add Hostname to the docker run command.

This commit is contained in:
Brendan Burns 2014-07-10 12:25:57 -07:00
parent b0b9606aea
commit dc61547b95

View File

@ -386,6 +386,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,