镜像概览
- 完整引用
docker.io/eeacms/rsync- Registry
- docker.io
- 命名空间
- eeacms
- 仓库
- rsync
- 已缓存 Tag 数
- 15
- 最近同步
- 07/06/2026, 02:02 PM
简介
EEA 维护的 rsync 客户端容器镜像,在 CI 或 Cron 任务中将目录增量同步至远程主机,适合静态站点与备份推送。
详细介绍
eeacms/rsync 封装 rsync 与 openssh-client,通过环境变量或命令行指定源/目标路径,常用于 Jenkins/GitLab CI 将构建产物 rsync 到 nginx 源站。镜像定位为短生命周期同步任务而非常驻服务。与 alpine+rsync 自制镜像相比预装 SSH 密钥挂载惯例;Kubernetes 中应以 CronJob 运行,密钥经 Secret 注入,同步完成后 Pod 退出。
快速启动
docker run --rm \
-v $(pwd)/site:/src \
docker.io/eeacms/rsync:latest \
rsync -avz /src/ user@backup-host:/var/www/html/
推荐实践
docker run --rm \
-v /data/site:/src:ro \
-v /data/.ssh:/root/.ssh:ro \
-e RSYNC_DEST=user@prod:/var/www/html/ \
docker.io/eeacms/rsync:1.0.0 \
rsync -avz --delete /src/ $RSYNC_DEST
核心参数说明
-v .../site:/src:ro— 只读挂载待同步目录-v .../.ssh:...— SSH 私钥(免密登录目标机)--delete— 删除目标端多余文件(谨慎使用)-avz— 归档模式、verbose、压缩传输--rm— 同步完成即退出- 定位 — Cron/CI 一次性任务
Kubernetes
apiVersion: batch/v1
kind: CronJob
metadata:
name: rsync-site
spec:
schedule: "*/30 * * * *"
jobTemplate:
spec:
template:
spec:
restartPolicy: OnFailure
containers:
- name: rsync
image: docker.io/eeacms/rsync:1.0.0
args:
- rsync
- -avz
- --delete
- /src/
- user@backup.internal:/var/www/html/
volumeMounts:
- name: src
mountPath: /src
readOnly: true
- name: ssh
mountPath: /root/.ssh
readOnly: true
volumes:
- name: src
persistentVolumeClaim:
claimName: site-content
- name: ssh
secret:
secretName: rsync-ssh-key
defaultMode: 0600
SSH 密钥 Secret 权限 0600;schedule 按 RPO 调整,目标主机防火墙仅允许 Job Pod 出口 IP。
最新 Tag(20 条)
查看全部 15 个 Tag →| Tag | 架构 | 推送时间 | 大小 | Digest | 同步 | 期望 | 操作 |
|---|---|---|---|---|---|---|---|
docker.io/eeacms/rsync :3.0 | linux/amd64 | 2025/09/26 12:53 | 9.5 MB | sha256:e1e17256d41c… | |||
docker.io/eeacms/rsync :latest | linux/amd64 | 2025/09/25 23:50 | 9.5 MB | sha256:733f33d3b58c… | |||
docker.io/eeacms/rsync :2.9 | linux/amd64 | 2025/08/28 18:16 | 9.5 MB | sha256:96316a63f264… | |||
docker.io/eeacms/rsync :2.8 | linux/amd64 | 2025/08/21 19:52 | 9.2 MB | sha256:56aeda3cf22d… | |||
docker.io/eeacms/rsync :2.7 | linux/amd64 | 2025/07/11 19:35 | 9.2 MB | sha256:ba7a1ca92a9b… | |||
docker.io/eeacms/rsync :2.6 | linux/amd64 | 2024/09/04 17:48 | 8.7 MB | sha256:07244cc157ee… | |||
docker.io/eeacms/rsync :2.5 | linux/amd64 | 2024/08/09 00:50 | 8.7 MB | sha256:51e0b7d748e4… | |||
docker.io/eeacms/rsync :2.4 | linux/amd64 | 2022/08/22 17:19 | 6.3 MB | sha256:abdffb1f4d25… | |||
docker.io/eeacms/rsync :2.3 | linux/amd64 | 2019/12/07 02:22 | 6.4 MB | sha256:913d20ab0e3a… | |||
docker.io/eeacms/rsync :2.2 | linux/amd64 | 2019/10/31 21:53 | 4.6 MB | sha256:f469d35472fa… | |||
docker.io/eeacms/rsync :2.1 | linux/amd64 | 2019/03/14 00:53 | 4.6 MB | sha256:15d3c851f1f2… | |||
docker.io/eeacms/rsync :2.0 | linux/amd64 | 2019/03/13 23:31 | 4.9 MB | sha256:809b8015a371… | |||
docker.io/eeacms/rsync :1.2 | linux/amd64 | 2018/04/12 00:08 | 4.6 MB | sha256:cae50e68ee93… | |||
docker.io/eeacms/rsync :1.1 | linux/amd64 | 2017/10/24 19:12 | 4.6 MB | sha256:e7c9d39eac0e… | |||
docker.io/eeacms/rsync :1.0 | linux/amd64 | 2017/04/24 18:04 | 3.8 MB | sha256:c37eaf09c235… |