Merge pull request #3134 from johanneswuerbach/configure-docker-on-coreos

Automatic merge from submit-queue

CoreOS: Ensure docker configuration is loaded
This commit is contained in:
Kubernetes Submit Queue 2017-08-05 21:17:29 -07:00 committed by GitHub
commit 75c6de3ec4
1 changed files with 4 additions and 0 deletions

View File

@ -476,6 +476,10 @@ func (b *DockerBuilder) buildContainerOSConfigurationDropIn(c *fi.ModelBuilderCo
Path: "/etc/systemd/system/docker.service.d/10-kops.conf",
Contents: fi.NewStringResource(contents),
Type: nodetasks.FileType_File,
OnChangeExecute: [][]string{
{"systemctl", "daemon-reload"},
{"systemctl", "restart", "docker.service"},
},
}
c.AddTask(t)