Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to see processes with nvidia-smi inside container #14

Open
tomdaley92 opened this issue Dec 27, 2021 · 2 comments · Fixed by #15
Open

Unable to see processes with nvidia-smi inside container #14

tomdaley92 opened this issue Dec 27, 2021 · 2 comments · Fixed by #15
Labels
enhancement New feature or request

Comments

@tomdaley92
Copy link
Member

tomdaley92 commented Dec 27, 2021

Super minor issue as I can see the Plex transcode PIDs if I run nvidia-smi on the host (outside the container)

NVIDIA/nvidia-docker#476

As a workaround you pass the --pid=host flag to a docker run command.

For example:

docker run --rm --gpus all --pid=host nvidia/cuda:11.0-base nvidia-smi

Just note that every container will see the same process list, there is no isolation of being able to only see the processes which pertain to the container you are in.

Is there an equivalent --pid=host flag for the Docker Compose File Specification, and is it compatible with Docker Swarm? If so this would be trivial to correct.

@tomdaley92 tomdaley92 added the enhancement New feature or request label Dec 27, 2021
@tomdaley92
Copy link
Member Author

Found it: https://docs.docker.com/compose/compose-file/compose-file-v3/#pid

I'm assuming this works on Docker Swarm, since there is no note about it not working specifically in Swarm Mode, like some of the other sections do.

Now would that have any negative consequences?

@tomdaley92
Copy link
Member Author

Well that didn't work :( I should have done a little more research

docker/docs#5624

@tomdaley92 tomdaley92 reopened this Dec 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant