diegogslomp / samba-ad-dc

🐳 Docker image of Samba domain controller compiled from source
https://hub.docker.com/r/diegogslomp/samba-ad-dc
GNU General Public License v3.0
46 stars 18 forks source link

Bind volume #17

Closed xgonc closed 1 year ago

xgonc commented 1 year ago

Hello,

I'd like to bind mount the directories where samba stores its data. This is more convenient when upgrading samba or upgrading the container.

What directories shall I bind mount? Is /usr/local/samba/var enough?

Thanks.

diegogslomp commented 1 year ago

Hello

You can create a volume to store the /usr/local/samba dir as the README suggest, if you bind mount on top of a filesystem, the content already in the dir will not be showed. Any trouble let me know.