Restart Docker After Changing Proxy Settings

Restart Docker process after changing proxy settings through service
parameters. There is a potential issue currently where Docker is
started before the changes to proxy settings through service parameter
is applied. This means on lock/unlock, Docker restarts with old
proxy settings. This commit fixes that issue.

Closes-Bug: 1838651

Change-Id: I57e527998fdf50c4be38c32ea8d1ee95bc46d3ff
Signed-off-by: Jerry Sun <jerry.sun@windriver.com>
This commit is contained in:
Jerry Sun 2019-08-07 14:37:14 -04:00
parent 28f20a95e2
commit 01d4c00a82
1 changed files with 5 additions and 0 deletions

View File

@ -27,6 +27,11 @@ class platform::docker::config
mode => '0644',
content => template('platform/dockerproxy.conf.erb'),
}
~> exec { 'perform systemctl daemon reload for docker proxy':
command => 'systemctl daemon-reload',
logoutput => true,
refreshonly => true,
} ~> Service['docker']
}
Class['::platform::filesystem::docker'] ~> Class[$name]