diff --git a/tests/cli/test_compose_tar.sh b/tests/cli/test_compose_tar.sh index c0439ebd..8ff077df 100755 --- a/tests/cli/test_compose_tar.sh +++ b/tests/cli/test_compose_tar.sh @@ -31,6 +31,13 @@ rlJournalStart rlFail "Compose UUID is empty!" fi + # Running a compose can lead to a different selinux policy in the + # kernel, which may break docker. Reload the policy from the host and + # restart docker as a workaround. + # See https://bugzilla.redhat.com/show_bug.cgi?id=1711813 + semodule -R + systemctl restart docker + rlRun -t -c "$CLI compose image $UUID" IMAGE="$UUID-root.tar.xz" rlPhaseEnd