diff --git a/centos/Dockerfile b/centos/Dockerfile
index bbc8a5b74f75607bd5f5834d99aa74e435ce8b4f..3c9225b684a69c5b57301d65d22a48023b143274 100644
--- a/centos/Dockerfile
+++ b/centos/Dockerfile
@@ -354,7 +354,7 @@ RUN version=1.6.0 && \
     ninja -C build
 
 # pybind11
-ARG pybind11_VERSION=2.13.5
+ARG pybind11_VERSION=2.7.1
 RUN source /etc/profile && \
     cd /tmp && \
     curl -sSL -o pybind11-${pybind11_VERSION}.tar.gz https://github.com/pybind/pybind11/archive/v${pybind11_VERSION}.tar.gz && \
@@ -468,6 +468,21 @@ RUN version=3.8.19 && \
     rm -rf Python-${version}* && \
     ldconfig
 
+# pybind11
+ARG pybind11_VERSION=2.13.5
+RUN source /etc/profile && \
+    cd /tmp && \
+    curl -sSL -o pybind11-${pybind11_VERSION}.tar.gz https://github.com/pybind/pybind11/archive/v${pybind11_VERSION}.tar.gz && \
+    tar -xf pybind11-${pybind11_VERSION}.tar.gz && \
+    cd pybind11-${pybind11_VERSION} && \
+    cmake -S. -B build -G Ninja \
+        -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local \
+        -DPYBIND11_TEST=off \
+        && \
+    ninja -C build install && \
+    cd .. && \
+    rm -rf pybind11-${pybind11_VERSION}*
+
 # Python 3.9
 RUN version=3.9.19 && \
     source /etc/profile && \