Closed Robpol86 closed 8 years ago
Currently it seems Docker containers cannot run systemctl, probably an SELinux issue on the Docker host. I get this:
systemctl
[root@fb68c7859cc6 build]# systemctl status FlashAirMusic Failed to get D-Bus connection: Operation not permitted
Once they fix it in a future release merge this into Makefile in (taken at 7526622fb64f16c62cd170975cbf7542a8d7b348):
Makefile
diff --git a/Makefile b/Makefile index 8706b83..5a1d92e 100644 --- a/Makefile +++ b/Makefile @@ -45,6 +45,14 @@ docker-rpmtest: test "$$(rpm -q $(NAME) --queryformat '%{URL}')" == "$(URL)" test $$(rpm -q $(NAME) --queryformat '%{VERSION}') == "$(VERSION)" test $$($(NAME) --version) == "$(VERSION)" + ! test -f /var/log/$(NAME)/$(NAME).log + systemctl start $(NAME).service + sleep 2 + systemctl status $(NAME).service + systemctl stop $(NAME).service + sleep 2 + ! systemctl status $(NAME).service + grep "Shutting down" /var/log/$(NAME)/$(NAME).log .PHONY: docker-build-images
Currently it seems Docker containers cannot run
systemctl
, probably an SELinux issue on the Docker host. I get this:Once they fix it in a future release merge this into
Makefile
in (taken at 7526622fb64f16c62cd170975cbf7542a8d7b348):