diff --git a/cni-plugin/Dockerfile.amd64 b/cni-plugin/Dockerfile.amd64 index d0bcb6ebe3a..41a5ff23d20 100644 --- a/cni-plugin/Dockerfile.amd64 +++ b/cni-plugin/Dockerfile.amd64 @@ -37,6 +37,11 @@ COPY --from=ubi /lib64/ld-linux-x86-64.so.2 /lib64/ld-linux-x86-64.so.2 COPY --from=ubi /lib64/libpthread.so.0 /lib64/libpthread.so.0 COPY --from=ubi /lib64/libc.so.6 /lib64/libc.so.6 +# The following dependencies do not show up when performing ldd on the binary, but are still necessary. +COPY --from=ubi /lib64/libnss_dns.so.2 /lib64/libnss_dns.so.2 +COPY --from=ubi /lib64/libnss_files.so.2 /lib64/libnss_files.so.2 +COPY --from=ubi /lib64/libresolv.so.2 /lib64/libresolv.so.2 + # Copy hostname configuration files from UBI so glibc hostname lookups work. COPY --from=ubi /etc/host.conf /etc/host.conf COPY --from=ubi /etc/nsswitch.conf /etc/nsswitch.conf