crazy-max/docker-samba — 630★ trên GitHub (Dockerfile). Samba Docker image
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
Before using this image you have to create the YAML configuration file
/data/config.yml to be able to create users, provide global options and add
shares. Here is an example:
recycle: yes enables the vfs_recycle module. Any other value, including
no, leaves recycle disabled.
The vfs_recycle intercepts file deletion requests and moves the affected
files to a temporary repository rather than deleting them immediately. This
gives the same effect as the Recycle Bin on Windows computers. On this image it
is stacked with the default fruit and streams_xattr VFS modules so macOS
shares keep a consistent VFS configuration.
options is a list of raw Samba share parameters appended to the generated
share section. Use it for share-specific settings that are not modeled as
first-class YAML keys:
share:
- name: media
path: /samba/media
readonly: no
guestok: yes
options:
- "create mask = 0664"
- "directory mask = 0775"
- "force user = media"
- "force group = media"
- "store dos attributes = yes"
These options are written after the generated share settings, so they can also
override generated defaults when needed.
Docker compose is the recommended way to run this image. Copy the content of folder examples/compose
in /var/samba/ on your host for example. Edit the compose and configuration files with your preferences and run the
following commands:
If you want to deploy this Container in your Kubernetes Cluster you can you this Helm Chart: https://github.com/tzabbi/crazy-max-samba-helm
Upgrade
Recreate the container whenever I push an update:
docker compose pull
docker compose up -d
Notes
Variable interpolation
Values in a YAML file can be set by variables, and interpolated at runtime using
a Bash-like syntax ${VARIABLE}.
Default values can be defined inline using typical shell syntax ${VARIABLE-default}.
It evaluates to default only if VARIABLE is unset in the environment.
Here is an example:
auth:
- user: foo
group: foo
uid: 1000
gid: 1000
password: bar
share:
- name: foo
path: /samba/foo
browsable: ${BROWSABLE-no}
readonly: no
guestok: no
validusers: foo
writelist: foo
Zeroconf service discovery for Linux and macOS clients can be enabled by
setting AVAHI_ENABLE to 1. It publishes the _smb._tcp service on port
445 and a _device-info._tcp record for Finder using Avahi.
If you use Samba as a Time Machine target, set AVAHI_ADISK_NAME to the
matching share name to publish an _adisk._tcp record. No _adisk._tcp record
is published by default because advertising a non-existent Time Machine share
breaks client expectations.
mDNS uses multicast UDP port 5353, so the container must use host networking
on a Linux host. Docker Desktop host networking on macOS and Windows does not
provide LAN-visible multicast discovery for this use case.
The advertised service name follows the Avahi hostname by default. Set
AVAHI_NAME to control the name shown by service browsers such as Finder
without changing the host address record.
Set AVAHI_HOSTNAME to control the .local host name used by Avahi. Do not
include the .local suffix. This changes the host address record, so prefer
AVAHI_NAME when you only need a friendlier service name. If another mDNS stack
is already running on the host network, competing host address records can cause
Avahi host name conflicts.
Avahi listens on every interface by default. Set AVAHI_INTERFACES, for
example eth0, to avoid advertising on Docker bridge, loopback, or veth
interfaces.
See examples/zeroconf as an example.
Service discovery for Windows
Service discovery for Windows can be enabled by setting WSDD2_ENABLE to 1.
You also need to set the following capabilities to the container:
CAP_NET_ADMIN
CAP_NET_RAW
Name will be the hostname of the host if network mode is host or one of
the container. If you want to override this value, you can set hostname in
your compose file or set WSDD2_HOSTNAME env var.
NetBIOS name will be the hostname of the host. If you want to override this
value, you can set WSDD2_NETBIOS_NAME env var.
See examples/windows as an example.
Contributing
Want to contribute? Awesome! The most basic way to show your support is to star
the project, or to raise issues. You can also support this project by becoming a sponsor on GitHub
or by making a PayPal donation to ensure this
journey continues indefinitely!
Thanks again for your support, it is much appreciated! :pray:
crazy-max/docker-samba có 630 sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/crazy-max/docker-samba. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
crazy-max/docker-samba có phải mã nguồn mở không?
Có — crazy-max/docker-samba phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/crazy-max/docker-samba.
crazy-max/docker-samba có website riêng không?
TopGit chưa ghi nhận URL trang chủ cho crazy-max/docker-samba. Phần README ở tab phía trên thường có link demo, hoặc xem mô tả GitHub của repo.
crazy-max/docker-samba là gì?
crazy-max/docker-samba (crazy-max/docker-samba) là dự án Dockerfile trên GitHub. Theo mô tả gốc: Samba Docker image
crazy-max/docker-samba so với các dự án Developer Tools khác thế nào?
crazy-max/docker-samba được TopGit xếp vào nhóm Developer Tools, với 630 sao GitHub và viết bằng Dockerfile. Xem trang chủ đề Developer Tools trên TopGit để so sánh với các dự án tương tự theo số sao và mức độ hoạt động.
Cùng nhóm Developer Tools còn repo nào?
crazy-max/docker-samba thuộc nhóm Developer Tools trên TopGit, cùng 5 topic GitHub. Trang Trending và Topics liệt kê các repo cùng số sao và cùng ngôn ngữ để so sánh.
Đọc thêm về crazy-max/docker-samba ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/crazy-max/docker-samba là nguồn chính thức.
Đọc đầy đủ README ở tab phía trên.
Vẫn đang phân vân về docker-samba?
Một cú bấm sẽ gửi câu hỏi kèm trang này cho AI — xem AI nói gì về docker-samba.