From 5a180c4d5c0649b0b8a57782ef108f60e6049839 Mon Sep 17 00:00:00 2001 From: "k.kedron" Date: Fri, 24 May 2019 11:38:38 +0200 Subject: Proper configuration of the docker service Add extra steps to properly configure docker in the OS which are based on the systemd. Issue-ID: INT-1090 Signed-off-by: Krystian Kedron Change-Id: I840c7a4592a040e908cb599a51975d0ffa65b423 --- lib/_installers | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib/_installers') diff --git a/lib/_installers b/lib/_installers index af1d3b1..29b819b 100755 --- a/lib/_installers +++ b/lib/_installers @@ -133,6 +133,15 @@ function _configure_docker_proxy { rm ${docker_conf_backup} } +function _configure_docker_systemd_service { + local docker_service=/etc/systemd/system/docker.service.d + + mkdir -p $docker_service + cp /var/onap/files/docker.conf $docker_service/docker.conf + + systemctl daemon-reload +} + # _configure_docker_settings() - Configures Docker settings function _configure_docker_settings { local docker_conf=/etc/default/docker @@ -148,6 +157,7 @@ function _configure_docker_settings { *suse) ;; ubuntu|debian) + _configure_docker_systemd_service service docker restart sleep 10 ;; -- cgit