diff --git a/test/Dockerfile b/test/Dockerfile
index ec54236a5c9f4ab6831c405e733b4f8edcc3b602..97e8be417efdd678f68c9ded4a1bb0c1fa0beb53 100644
--- a/test/Dockerfile
+++ b/test/Dockerfile
@@ -72,6 +72,8 @@ Expire-Date: 0\n\
 | gpg --quiet --batch --no-tty --no-permission-warning --gen-key && \
 	gpg --export | sudo pacman-key -a - && \
 	sudo pacman-key --lsign-key tester@localhost && \
+	gpgconf --kill gpg-agent && \
+	gpgconf --kill keyboxd && \
 	mkdir -p \
 		/build/staging/{{core,extra,multilib}{,-testing,-staging},gnome-unstable} && \
 	git config --global user.email "tester@localhost" && \