# Libnvidia-encode.so is present on host but not available in Docker container with --gpus all

**URL:** <https://forums.developer.nvidia.com/t/libnvidia-encode-so-is-present-on-host-but-not-available-in-docker-container-with-gpus-all/340651>\
**Category:** Docker and NVIDIA Docker\
**Tags:** nvidia-smi\
**Created:** [July 29, 2025, 8:11pm UTC](https://forums.developer.nvidia.com/t/libnvidia-encode-so-is-present-on-host-but-not-available-in-docker-container-with-gpus-all/340651 "2025-07-29T20:11:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ival86](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@ival86](https://forums.developer.nvidia.com/u/ival86)\
**Post date:** [July 29, 2025, 8:11pm UTC](https://forums.developer.nvidia.com/t/libnvidia-encode-so-is-present-on-host-but-not-available-in-docker-container-with-gpus-all/340651/1 "2025-07-29T20:11:03Z")

</div>

Hello,

I have a system with NVIDIA driver 570.x installed on Ubuntu 20.04.  
The file `/usr/lib/x86_64-linux-gnu/libnvidia-encode.so` is present on the host and `nvidia-smi` works both on the host and inside containers.  
I use `nvidia-container-toolkit` and run containers with `--gpus all`, but inside any container (even official `nvidia/cuda` images) the library `libnvidia-encode.so` is missing in `/usr/lib/x86_64-linux-gnu/`.  
Other NVIDIA libraries are present and GPU is visible.

- Host: Ubuntu 20.04, NVIDIA driver 570.x (not server/open)
- `nvidia-container-toolkit` is installed and up to date
- `/usr/lib/x86_64-linux-gnu/libnvidia-encode.so*` exists on host
- No NVIDIA driver is installed in the container
- Docker default runtime is set to `nvidia`
- `nvidia-smi` works in container

How can I make `libnvidia-encode.so` available inside the container?  
Is there a known issue with this driver version or toolkit?  
What else should I check?

Thank you!
