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 <andrewhsu@docker.com>
This commit is contained in:
Andrew Hsu committed 2017-07-09 17:11:43 +00:00
1 parent 13838e00b7
commit 111989bb35
1 file changed
-5
-5
View File
@@ -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