

- #Gpodder freenas jail mounted storage to cifs password#
- #Gpodder freenas jail mounted storage to cifs windows#
You should see testdocfromcontainer.txt in the windows share. Thread starter Hazard93 So log in via ssh to you FreeNAS server, cd to the Syncthing jail and mkdir a new directory So log in via ssh to you FreeNAS server, cd to the Syncthing jail and mkdir a new directory. You should be able to access the windows share and modify it from your container now.ĭocker exec -it yourRunningContainer /bin/bash Now you can run your container by using -v tag and share a volume between the server and the container.ĭocker run -d -name mycontainer -v /home/WinShare:/home 2d244422164.

In addition to that since you use the uidand gid tags you will have write access without using sudo all the time. After running this command you should be able to see all the shared folders and files in WinShare folder. Let's assume you created WinShare folder inside your home folder.
#Gpodder freenas jail mounted storage to cifs password#
This will ask your sudo password, then it will ask password for the remote share. Sudo mount -t cifs -o username=YourUserName,uid=$(id -u),gid=$(id -g) //SERVER/share ~/WinShareĬhange the username, SERVER and WinShare here. First mount the volume on the server that runs docker.I tried mounting the shares read-only, but this (unsurprisingly) also failed.Īm I correct in understanding that Docker prevents any use of mount inside containers?Ĭan anyone think of another way to accomplish this without mounting a CIFS share on the host and then mounting the host folder in the Docker container?ĭo not make your containers less secure by exposing many ports just to mount a share. If I'm reading this correctly, it appears that Docker explicitly denies the ability to mount filesystems within a container. I get mount error(13): Permission denied.Ī little research online led me to this article about Docker security. So I tried to add the appropriate entries to the /etc/fstab file in the container & mounting them with mount -a. Not every share is involved at the same time, this means sometimes share1 is losing the connection and the other time share2 is involved. They keep unexpected losing the connection to these shares.

Now I'm trying to put together a production container which will be run on a different server and which doesn't rely on the CIFS share being mounted on the host. I have a plenty of debian linux vm machines running on proxmox which are connected to several unraid user shares. On my development machine I have the appropriate folders mounted via entries in /etc/fstab and the host mount points are mounted in the Docker container via the -volume argument. The files I'm trying to access are image files created for our clients and the web application displays them as part of the client's portfolio. This application needs to access some files on our corporate file server (Windows Server with an Active Directory domain controller). I have a web application running in a Docker container.
