docker container access to system /usr/bin


5 posts in this topic Last Reply

Recommended Posts

Hey,

 

Sorry not amazing with linux yet, so I'm building additional grafana dashboards, I'm using typical  telegraf into influxdb with grafana display. I got everything else sorted but wanted to add ipmi stats and nvidia smi. I found thread on ipmitool so added /bin/sh -c 'apk update && apk add ipmitool && telegraf' to post arguments which installs ipmitool within containers /usr/bin as expected but can't get nvidia-smi to work properly.

 

So I'm thinking it might just be easier to give container access to sytems path directly, but not sure how to accomplish that either :S

Link to post

Hmmm not sure what you mean, so I already had netdata, but there's nothing in vars in template that'd make me think "I'll just copy this and it'll work"

 

image.png.23e5d290012920745eedacbdb197b01a.png

 

checked console, it doesn't have access to ipmitool or smi either.

 

image.png.35b387488898de5941aae731442f1b00.png

Link to post

So I got nvidia device to pass over into container, but still can't find a way to run nvidia-smi, figured out that I can access it from /rootfs/usr/bin and it lists it using ls but fails to run with error file not found.

 

/rootfs/usr/bin # ls -la /dev | grep nvidia
crw-rw-rw-    1 root     root      195, 254 May  8 13:05 nvidia-modeset
crw-rw-rw-    1 root     root      243,   0 May  8 13:05 nvidia-uvm
crw-rw-rw-    1 root     root      243,   1 May  8 13:05 nvidia-uvm-tools
crw-rw-rw-    1 root     root      195,   0 May  8 13:05 nvidia0
crw-rw-rw-    1 root     root      195, 255 May  8 13:05 nvidiactl
/rootfs/usr/bin # 

 

 

Link to post

Adding a container variable of type path, with container path and host path of /usr/bin (and access mode of read only for security) , would substitute the docker's /usr/bin with unraid's /usr/bin.  However, this would probably have negative consequences.  The files are probably be from different linux distros.  I tried it with a random docker, and it wouldn't even start.

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.