Jump to content

Docker paths - can I overlay a subdirectory?


CS01-HS

Recommended Posts

I have a Media share setup as follows:

Media/
   Movies/
   TV/

 

I have Recycle Bin enabled for that share:

Media/
   .Recycle.Bin/

 

I have a container that deals specifically with Movies.

I'd like to restrict its access to the movie dir by setting the container path:

/mnt/user/Media/Movies -> /movies

 

But I'd also like to give it access to the Recycle Bin which lives one directory up.

I thought I could "trick" it by overlaying the recycling dir on the existing path with an additional path var:

/mnt/user/Media/.Recycle.Bin -> /movies/.Recycle.Bin

but that didn't work. (It results in the creation of the host path below)

/mnt/user/Media/Movies/.Recycle.Bin

 

Currently I pass it the Media share which allows it to access both Movies and .Recycling.Bin - it works but it's not ideal.

 

Is there a proper way to accomplish what I want?

Link to comment

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.

×
×
  • Create New...