镜像概览

完整引用
docker.io/justsong/go-file
Registry
docker.io
命名空间
justsong
仓库
go-file
已缓存 Tag 数
12
最近同步
07/06/2026, 04:40 PM

简介

go-file 轻量文件分享与直链服务,支持上传、目录浏览与短链下载,适合内网临时文件交换与小团队私有网盘。

详细介绍

justsong/go-file 提供 Web 上传与分享页面,管理员配置存储路径、访问密码与过期策略后用户经浏览器或 curl 上传下载。数据存于挂载卷,无内置对象存储多副本。与 Nextcloud 相比极简、资源占用低;Kubernetes 中可作为单副本或少量副本 Deployment,上传目录须 PVC 持久化,Ingress 启用 HTTPS 与大小限制。

快速启动

docker run -d --name go-file \
  -p 8080:8080 \
  -v $(pwd)/files:/data \
  docker.io/justsong/go-file:latest

推荐实践

docker run -d --name go-file \
  --restart unless-stopped \
  -p 8080:8080 \
  -v /data/gofile:/data \
  -e PASSWORD=share-secret \
  -e MAX_SIZE=500 \
  docker.io/justsong/go-file:v1.0.0

核心参数说明

  • -p 8080:8080 — Web 上传与下载端口
  • -v /data/gofile:/data — 文件存储根目录
  • -e PASSWORD — 全局访问密码(若启用)
  • -e MAX_SIZE — 单文件大小上限(MB)
  • --restart unless-stopped — 内网分享服务持续可用
  • 固定 tag — 避免 API 行为漂移

Kubernetes

apiVersion: apps/v1
kind: Deployment
metadata:
  name: go-file
spec:
  replicas: 1
  selector:
    matchLabels:
      app: go-file
  template:
    metadata:
      labels:
        app: go-file
    spec:
      containers:
        - name: go-file
          image: docker.io/justsong/go-file:v1.0.0
          ports:
            - containerPort: 8080
          envFrom:
            - secretRef:
                name: go-file-secrets
          volumeMounts:
            - name: data
              mountPath: /data
      volumes:
        - name: data
          persistentVolumeClaim:
            claimName: go-file-data
---
apiVersion: v1
kind: Service
metadata:
  name: go-file
spec:
  selector:
    app: go-file
  ports:
    - port: 8080
      targetPort: 8080

文件 PVC 容量按团队用量规划;Ingress 配置 TLS 与 client-max-body-size,多副本需共享 ReadWriteMany 存储。

最新 Tag(20 条)

查看全部 12 个 Tag →
Tag架构推送时间大小Digest同步期望操作
docker.io/justsong/go-file
:latest
linux/amd64
2023/05/20 15:0211.8 MBsha256:9860606003f4
docker.io/justsong/go-file
:v0.4.12
linux/amd64
2023/05/20 15:0211.8 MBsha256:9860606003f4
docker.io/justsong/go-file
:v0.4.11
linux/amd64
2023/05/12 23:1411.8 MBsha256:8c338f2973c6
docker.io/justsong/go-file
:v0.4.10
linux/amd64
2023/05/05 14:3814.2 MBsha256:da05400c642a
docker.io/justsong/go-file
:v0.4.9
linux/amd64
2023/05/04 18:5614.3 MBsha256:c95d604d6d48
docker.io/justsong/go-file
:v0.4.8
linux/amd64
2023/04/22 17:2714.3 MBsha256:3c8731d8b84c
docker.io/justsong/go-file
:v0.4.7
linux/amd64
2023/04/14 16:2612.3 MBsha256:09671c6f5033
docker.io/justsong/go-file
:v0.4.6
linux/amd64
2022/12/19 17:0612.2 MBsha256:6fe472d3ee37
docker.io/justsong/go-file
:v0.4.5
linux/amd64
2022/11/23 11:176.0 MBsha256:36a400ee0074
docker.io/justsong/go-file
:v0.4.4
linux/amd64
2022/08/07 13:536.0 MBsha256:2a7cb2ded673
docker.io/justsong/go-file
:v0.4.3
linux/amd64
2022/07/30 10:035.6 MBsha256:5cbffc85e1be
docker.io/justsong/go-file
:master
linux/amd64
2022/07/29 23:235.9 MBsha256:161ed3a471c7