diff --git a/ci/docker_images/ubuntu/bionic/Dockerfile b/ci/docker_images/ubuntu/bionic/Dockerfile
index fe27ae6340757ede6a594230233094c2d60e4758..c51c43bb5eb3419d5bc7cdbbb764e43bdfc9fafe 100644
--- a/ci/docker_images/ubuntu/bionic/Dockerfile
+++ b/ci/docker_images/ubuntu/bionic/Dockerfile
@@ -205,6 +205,7 @@ RUN cd /tmp                                      \
  && git clone https://github.com/drwells/pyFFTW  \
  && cd pyFFTW                                    \
  && git checkout r2r-try-two                     \
+ && sed -i 's/\(fftw3[fl]\?_\)threads/\1omp/g' setup.py \
  && pip install .                                \
  && cd -                                         \
  && rm -Rf /tmp/pyFFTW
diff --git a/ci/docker_images/ubuntu/bionic_cuda/Dockerfile b/ci/docker_images/ubuntu/bionic_cuda/Dockerfile
index 66c17a9daef7c265f42db066f6a6fe7557debddc..e7d149c2d7997012043de004345f460ded2c3b88 100644
--- a/ci/docker_images/ubuntu/bionic_cuda/Dockerfile
+++ b/ci/docker_images/ubuntu/bionic_cuda/Dockerfile
@@ -205,6 +205,7 @@ RUN cd /tmp                                      \
  && git clone https://github.com/drwells/pyFFTW  \
  && cd pyFFTW                                    \
  && git checkout r2r-try-two                     \
+ && sed -i 's/\(fftw3[fl]\?_\)threads/\1omp/g' setup.py \
  && pip install .                                \
  && cd -                                         \
  && rm -Rf /tmp/pyFFTW