mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 18:31:15 +00:00
Merge pull request #396 from brendandburns/hostname
Add Hostname to the docker run command.
This commit is contained in:
commit
32bcdbeb53
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user