mirror of
https://github.com/docker/docker-install.git
synced 2026-11-20 10:03:11 +03:00
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:
1 parent
13838e00b7
commit
111989bb35
1 file changed
-5
@@ -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
|
||||
|
||||
Reference in new issue
Block a user