gasparekatapy/seaweedfsUse as a command -peers=SERVICE_NAME:PORT
The image gets the IP from the peers service name
If no ip is found in peers ( like if there is no peers argument, for example ), uses the -ip=SERVICE_NAME as a fallback
Note: works well with docker volume seaweedfs plugin: [***]
Version 3.5.0 adds a remotesync.sh to be used for cloud storage 2-way sync. It expects a config.conf file with each line a mounted directory to sync
Version 3.4.3 adds a clean_log script to be used with swarm cronjob, to mitigate topics logs bloating by keeping only WEED_KEEP_DAYS days
Version 3.2.7 adds support for global filer and masters, and detection and removal at start of non reachable masters to keep the raft quorum, even in case of master node migration
Version 3.1.2 adds USE_HOSTNAME: "true" to change -ip= parameter to the local hostname, useful with filer
Version 3.1.1 adds USE_DISCOVER: "true" also for DETECT_MASTERS: "true" with assumption master hostnames is the value of -master o -mserver with added _TASKSLOT, i.e. master_1,master_2,master_3. Docker 20.10.0 auto creates alias for hostname if hostname != container
Version 3.1.0 Adds a discovery service, to be used in combination with envs DETECT_PEERS: "true", USE_DISCOVER: "true" and using as hostname hostname: "master_{{.Task.Slot}}" then the -ip and -peers are rebuild using the container hostnames. This is to try to keep the connections with same hostnames and overcame a limitation with master raft cluster when ips change due to docker redeploy
Version 3.0.0 Updates to latest seaweed code and adds DETECT_MASTERS: "true" to expand -master or -mserver to the internal IP list. DETECT_PEERS: "true" allows also to find the current container ip from the -ip=SERVICE_NAME:PORT command, bypassing the service name VIP, allowing SeaweedFS to handle correctly the connections like multiple filers
Version 2.7.4 Detecs from the -ip parameter the internal ip, and uses PUBLIC_URL as fallback. Fixes a "host unreachable" error when trying to connect from the container to the public ip derived from PUBLIC_URL on the same host as the container ( because of docker iptables isolation rules )
Version 2.6.1 Uses PUBLIC_URL for the -ip parameter. This avoids bad ip detection
Version 2.5.0 Uses the new parameter from upstream for weed mount -volumeServerAccess
Version 2.4.1 Added DETECT_PEERS to bypass DNS resolver for peers. Default is true for backward compatibility
Version 2.4.0 adds large version with :large tags
Version 2.3.0 adds support for volume publicUrl, leveraging Swarm {{.Node.Hostname}} template. If the server has a FQDN hostname, this enhancement allows to use weed mount -outsideContainerClusterMode with master, filer and volumes deployed in swarm
Example
version: '3.9' services: master: image: gasparekatapy/seaweedfs environment: DETECT_MASTERS: "false" DETECT_PEERS: "true" USE_DISCOVER: "true" USE_HOSTNAME: "false" CLUSTER_SIZE: 3 networks: - net hostname: "master_{{.Task.Slot}}" command: - 'master' - '-ip=master' - '-ip.bind=0.0.0.0' - '-port=9333' - '-port.grpc=***' - '-peers=master:9333' - '-resumeState=true' - '-raftHashicorp=true' - '-raftBootstrap=false' deploy: mode: global placement: constraints: - node.role == manager update_config: parallelism: 1 failure_action: rollback order: stop-first filer: image: gasparekatapy/seaweedfs environment: DETECT_MASTERS: "true" DETECT_PEERS: "false" USE_DISCOVER: "true" USE_HOSTNAME: "true" CLUSTER_SIZE: 3 ports: - "8888:8888" - "***:***" networks: - net hostname: "filer_{{.Task.Slot}}" command: - 'filer' - '-ip=filer' - '-ip.bind=0.0.0.0' - '-port=8888' - '-port.grpc=***' - '-port.readonly=28888' - '-master=master:9333' deploy: mode: replicated replicas: 3 placement: max_replicas_per_node: 1 update_config: parallelism: 1 failure_action: rollback order: stop-first volume: image: gasparekatapy/seaweedfs environment: DETECT_MASTERS: "true" DETECT_PEERS: "false" USE_DISCOVER: "true" USE_HOSTNAME: "true" CLUSTER_SIZE: 3 PUBLIC_URL: "{{.Node.Hostname}}:8080" ports: - target: 8080 published: 8080 protocol: tcp mode: host - target: *** published: *** protocol: tcp mode: host hostname: "volume_{{.Task.Slot}}" networks: - net command: - 'volume' - '-ip=volume' - '-ip.bind=0.0.0.0' - '-port=8080' - '-port.grpc=***' - '-mserver=master:9333' deploy: mode: global update_config: parallelism: 1 failure_action: rollback order: stop-first clean_log: image: gasparekatapy/seaweedfs environment: WEED_MASTER: "master:9333" WEED_FILER: "filer:8888" WEED_KEEP_DAYS: 2 networks: - net entrypoint: ["/clean_log.sh"] deploy: mode: replicated replicas: 0 restart_policy: condition: none labels: # Swarm cronjob - swarm.cronjob.enable=true - swarm.cronjob.schedule=0 0 */3 * * - swarm.cronjob.skip-running=true remote2local: image: gasparekatapy/seaweedfs environment: WEED_SYNC_TYPE: "remote" WEED_MASTER: "master:9333" WEED_FILER: "filer:8888" volumes: - /path/to/config.conf:/config.conf networks: - net entrypoint: ["/remotesync.sh", "/config.conf"] deploy: mode: replicated replicas: 0 restart_policy: condition: none labels: # Swarm cronjob - swarm.cronjob.enable=true - swarm.cronjob.schedule=0 * * * * - swarm.cronjob.skip-running=true local2remote: image: gasparekatapy/seaweedfs environment: WEED_SYNC_TYPE: "local" WEED_MASTER: "master:9333" WEED_FILER: "filer:8888" volumes: - /path/to/config.conf:/config.conf networks: - net entrypoint: ["/remotesync.sh", "/config.conf"] deploy: mode: replicated replicas: 1 placement: max_replicas_per_node: 1 preferences: - spread: node.labels.datacenter
Works also for -filer.peers and -master.peers for server mode.
NOTE
Version 2.0.0+ is based on a custom build of source code and dockerfile to fix WebDAV error for small files ( < 512 Bytes ) with no mime type.
This version does not install supercronic in the image
探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
在 Linux 系统配置镜像服务
在 Docker Desktop 配置镜像
Docker Compose 项目配置
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
MacOS OrbStack 容器配置
在宝塔面板一键配置镜像
Synology 群晖 NAS 配置
飞牛 fnOS 系统配置镜像
极空间 NAS 系统配置服务
爱快 iKuai 路由系统配置
绿联 NAS 系统配置镜像
QNAP 威联通 NAS 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
无需登录使用专属域名
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
免费版仅支持 Docker Hub 访问,不承诺可用性和速度;专业版支持更多镜像源,保证可用性和稳定速度,提供优先客服响应。
专业版支持 docker.io、gcr.io、ghcr.io、registry.k8s.io、nvcr.io、quay.io、mcr.microsoft.com、docker.elastic.co 等;免费版仅支持 docker.io。
当返回 402 Payment Required 错误时,表示流量已耗尽,需要充值流量包以恢复服务。
通常由 Docker 版本过低导致,需要升级到 20.x 或更高版本以支持 V2 协议。
先检查 Docker 版本,版本过低则升级;版本正常则验证镜像信息是否正确。
使用 docker tag 命令为镜像打上新标签,去掉域名前缀,使镜像名称更简洁。
来自真实用户的反馈,见证轩辕镜像的优质服务