Fixes reading /root/.docker/config.json on debian

Debian and probably others apparently don't automatically default to using the root account if it's not specified.
This commit is contained in:
Blake 2017-08-14 13:08:30 -07:00
parent 74d0e211f4
commit e845e240ef
1 changed files with 1 additions and 0 deletions

View File

@ -180,6 +180,7 @@ func (b *KubeletBuilder) buildSystemdService() *nodetasks.Service {
manifest.Set("Service", "RestartSec", "2s")
manifest.Set("Service", "StartLimitInterval", "0")
manifest.Set("Service", "KillMode", "process")
manifest.Set("Service", "User", "root")
manifestString := manifest.Render()
glog.V(8).Infof("Built service manifest %q\n%s", "kubelet", manifestString)