Better docker service restart and checking when installing the certificate RPM
Should be checked for systemd based systems when trying to restart docker. Also should be checked if docker is installed on service based systems.
Fixes #9875: Better docker service restart
Improve the check for the docker service in order to restart it if
needed. Also check for systemd based system first and then fall back to
the service based utilities.