Samba¶
DEPRECATED¶
DEPRECATION NOTICE: This image is deprecated as of 2024-02-18.
Description¶
Samba is using the SMB protocol to share Linux
mounts, which then are accessible and mountable on a Windows computer.
By default, Samba will share all media directories and
Docker config directory
over SMB on the host. All of these directories will be placed inside whatever
share name is specified for SAMBA__ENVIRONMENT_SHARENAME in your .env file. These shares
are protected with username ds and password ds by default, but can and
should be changed in your .env file.
Install/Setup¶
This application does not have any specific setup instructions documented. If you need assistance setting up this application please visit our support page.
Access Shares¶
Replace host with your DNS or IP-address of your Docker host.
\\host\DockSTARTer
Setting Up Additional Shares¶
You can set up additional shares using an override. To do so, you need to do the following:
-
Create a new variable in your
.envfile that will be the path to your new share on the host e.g./path/to/your/shareand give it an easily recognizable name e.g.SAMBA_xxxx=/path/to/share. -
Create another variable that will be the share name that shows up when you access your shares. For example,
SAMBA_SHARE_xxx=AnotherShare -
On your override file under
environmentandvolumesyou will you need to copy the following:
environment:
- SHARE2=${SAMBA_SHARENAME};/${SAMBA_SHARENAME};yes;no;no;all;${SAMBA_USERNAME}
volumes:
- ${SAMBA_xxx}:/path/inside/container
-
Make sure to update what is inside
${}to match whatever you used in Step 2. -
If you want to add additional shares in the future just add a number at the end of the
SHAREand just copy and paste everything after the=. Don't forget to update what is inside the${}. -
Run
ds -c up sambato recreate the container and the new share can be generated.
How To Mount Windows Share in Linux¶
See SMB Mounting.