A simple SMB docker container for sharing data with authorized users. This branch is for usage with Imagr and BSDPy.
Default username: admin
Default password: letmein
Assuming you want to share /usr/local/docker/imagr and /usr/local/docker/nbi on your docker host:
docker run -d \
--restart="always" \
--name smb-protected \
-v /usr/local/docker/imagr:/imagr \
-v /usr/local/docker/nbi:/nbi \
-p 445:445 \
clburlison/smb-protected:imagr_bsdpy
If you wish to change the admin password:
echo -ne "newpassword\nnewpassword\n" | docker exec -i smb smbpasswd -a -s admin
Note: The password is being set to newpassword in the above example. The "\n" are enter characters that are needed to enter the password without user interaction.
From an OS X client:
Finder -> Go -> Connect to Server -> smb://docker-host-ip/
Content type
Image
Digest
sha256:76cd46dcb…
Size
84.9 MB
Last updated
over 10 years ago
docker pull clburlison/smb-protected