From 111989bb352d6281c879246013e4cbc3659a831b Mon Sep 17 00:00:00 2001 From: Andrew Hsu Date: Sun, 9 Jul 2017 17:11:43 +0000 Subject: [PATCH] removed starting of service for fedora and centos Running install.sh inside docker container, receiving error message: Failed to get D-Bus connection: Operation not permitted Even though the rpm is successfully installed. In rpm world, should not start systemd service after install of rpm package if the service is not already started before install, which is the case for first install of the package. Signed-off-by: Andrew Hsu --- install.sh | 5 ----- 1 file changed, 5 deletions(-) diff --git a/install.sh b/install.sh index cd34485..8bf5396 100644 --- a/install.sh +++ b/install.sh @@ -486,11 +486,6 @@ do_install() { fi $sh_c "$pkg_manager makecache fast" $sh_c "$pkg_manager install -y -q docker-ce" - if [ -d '/run/systemd/system' ]; then - $sh_c 'service docker start' - else - $sh_c 'systemctl start docker' - fi ) echo_docker_as_nonroot exit 0