PermissionError: [Errno 13] Permission denied: '/opt/nim/.cache/local_cache'

I am trying to deploy Nvidia NIM with Docker on premise. Followed instruction from llama-3.1-8b-instruct Model by Meta | NVIDIA NIM

I am able to pull the image but when trying to run it I keep getting this error: PermissionError: [Errno 13] Permission denied: ‘/opt/nim/.cache/local_cache’. I believe that is the path within the container. Has anyone else faced this issue before?

You’ll want to make sure you have the correct permissions in that directory.

Can you verify what permissions you have for the provided path?

Hi, yes you’re right. I fixed it by giving my local nim cache write permission.