这是indexloc提供的服务,不要输入任何密码
Skip to content

Permission issue in CUDA docker container #798

@poVoq

Description

@poVoq

I have LibreTranslate running fine with the official docker container but would like to enabled CUDA with it.

So I downloaded the libretranslate:latest-cuda container image instead and configured it to pass through the Nvidia GPU I have.

The container starts fine and I could confirm that the GPU passthrough works by executing nvidia-smi in the container, but I noticed that it doesn't actually start libretranslate itself in that container.

On investigation it seems like the latest-cuda image seems to have an issue with all the files in the /app folder being owned by the root user, instead of the libretranslate user like in the normal non-CUDA container image. It also seems to miss the venv setup.

When I try to execute the libretranslate file in the container manually it fails with an permission issue.

Looking at the docker.cuda file it seems like the container does not switch to another user and thus it should run as root, but maybe it can't access the /dev/nvidia0 devices or so?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions