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 and SMB mounts

Featured Replies

Not sure if this has been asked or not. But I'm curious as to whether docker is capable of mapping smb mounts.

 

Basically, I'm mounting a smb mount from another machine to unRAID, I'm able to view its files via ssh. From there, I using that mount point as a host path for the sonarr docker. Unfortunately, I see the path as empty from within the sonarr UI.

 

So not sure if there is a limitation with docker and passing in mounts of not.

 

Also, is there an up to date nsenter bin such that we can inspect within containers?

 

Thanks

 

 

Not sure if this has been asked or not. But I'm curious as to whether docker is capable of mapping smb mounts.

 

Basically, I'm mounting a smb mount from another machine to unRAID, I'm able to view its files via ssh. From there, I using that mount point as a host path for the sonarr docker. Unfortunately, I see the path as empty from within the sonarr UI.

 

So not sure if there is a limitation with docker and passing in mounts of not.

Just about every container I have is using a SMB mount (mounted with unassigned devices).  Works like a charm

 

  • Author

Using unassigned devices as well. Odd. Probably a permissions things, I see the files as own by root via ssh.

Using unassigned devices as well. Odd. Probably a permissions things, I see the files as own by root via ssh.

Not sure...  Most of my mounts are to another unRaid box, and a couple to a Windows box.  All work fine

 

  • Author

What are you permissions like on the smb mounted files? Did you create a similar user on unraid as entered with unassigned devices?

Try restarting docker to see if that makes the smb share mounted visible in the container. I had to do this to make it work.

Squid probably does something that makes unassigned devices mount share before docker starts  ::)

Try restarting docker to see if that makes the smb share mounted visible in the container. I had to do this to make it work.

Squid probably does something that makes unassigned devices mount share before docker starts  ::)

Not that I'm aware of.  Beyond having a P.O.S. main server with a spinner for a cache drive which makes docker load up slow.

That might be enough for unassigned devices to get things mounted I guess.

  • Author

Thanks, and you're right. Docker needs a restart after the smb mounts. I keep on restarting the sonarr docker but not docker itself.

 

In fact, now I got this working, my next question would be how is the sequenced handled on boot. Do the dockers start prior/after the unassigned devices plugin mounting?

 

I tried a reboot with both Auto mount (unassigned devices) & Autostart (sonarr docker) set to On  - so far so good - seemed to have mounted the smb shares prior to starting docker. Or was that a fluke?

It might be that it's a hit and miss, but it might be that it stays like this now. Try a couple of reboots to check.

It might be that it's a hit and miss, but it might be that it stays like this now. Try a couple of reboots to check.

What I used to do before smb was added to unassigned devices was entries within go that would pause execution if the network wasn't up, and once it was up do my mounts and then continue loading emhttp.
  • Author

Well, I guess I have a bigger problem.

 

For some reason, my onboard RealTek NIC is producing traces in the log (http://lime-technology.com/forum/index.php?topic=42116.msg400213#msg400213) , likely bad hardware or something. In short sometimes my network does not come up on boot with the RealTek. I guess no other choice but to disable it in the BIOS.

 

Now, I'm using an Intel dual NIC card and have configured one port as a bridge (such that I can use it for other VMs) and I've noticed that the IP configuration/assignment (set as static in network settings) is delayed at boot for some reason, which in turn probably affect the unassigned devices from mounting the smb mounts.

 

Now they no longer mount at boot...

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.