Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

docker container access to system /usr/bin

Featured Replies

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

Install the netdata docker and take a look at the template variables, including what you see when you press the Edit buttons.  Some of the system variables are defined read-only. 

  • Author

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

  • Author

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 # 

 

 

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.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.