Docker Community Forums

Share and learn in the Docker community.

Inividual sambashare-mount for each container


(Darkie) #1

Hey there!
I am new here and I’d like to create a image which creates for each container an idividual directroy in a samba share and mount this share on a special location. For example "mount -t cifs //ip.adress/path/to/share/RandomID"
Does anybody have a clue how to solve this?
The container always tells me “mount: permission denied” when i’m trying to mount the share , so mounting inside the box wouldn’t be an option, correct?
Thank you for your help in advance :slight_smile: