diff --git a/scripts/docker/rocky:latest/Dockerfile b/scripts/docker/rocky:latest/Dockerfile
index 0d47f729b998181e12c6d7b2a321cfce6c2d379a..2b9036bcb22db2736e18a571706edcaa459a9a2f 100644
--- a/scripts/docker/rocky:latest/Dockerfile
+++ b/scripts/docker/rocky:latest/Dockerfile
@@ -1,9 +1,9 @@
-FROM rockylinux:latest
+FROM rockylinux:9
 MAINTAINER Knot DNS <knot-dns@labs.nic.cz>
 ENV DEBIAN_FRONTEND noninteractive
 RUN dnf -y upgrade
 RUN dnf -y install epel-release
-RUN dnf -y --enablerepo powertools install \
+RUN dnf -y --enablerepo crb install \
 	'autoconf' \
 	'automake' \
 	'diffutils' \