镜像概览

完整引用
docker.io/gomods/athens
Registry
docker.io
命名空间
gomods
仓库
athens
已缓存 Tag 数
119
最近同步
07/06/2026, 09:47 AM

简介

Athens Go Module Proxy 镜像,缓存与代理 module proxy.golang.org,适合企业 Go 依赖私服与离线构建。

详细介绍

gomods/athens 提供 Go module 代理与缓存,CI 与开发机 GOPROXY 指向 Athens 加速拉取并审计依赖。典型 air-gapped 或国内网络优化场景,与 Artifactory go 仓库相比更轻量。定位为无状态 HTTP 代理服务,需 storage backend volume 或 S3;K8s Deployment + PVC/S3。

快速启动

docker run -d --name athens \
  -p 3000:3000 \
  -e ATHENS_STORAGE_TYPE=disk \
  -e ATHENS_DISK_STORAGE_ROOT=/var/lib/athens \
  docker.io/gomods/athens:latest

推荐实践

docker run -d --name athens \
  --restart unless-stopped \
  -p 3000:3000 \
  -e ATHENS_STORAGE_TYPE=disk \
  -v /data/athens:/var/lib/athens \
  -e GOPROXY=https://proxy.golang.org,direct \
  docker.io/gomods/athens:v0.15.0

核心参数说明

  • -p 3000:3000 — Athens HTTP 代理端口
  • -e ATHENS_STORAGE_TYPE=disk — 本地磁盘缓存
  • -v .../athens:... — module 缓存目录
  • --restart unless-stopped — 代理持续在线
  • 固定 tag — Athens 与 Go module pin

Kubernetes

apiVersion: apps/v1
kind: Deployment
metadata:
  name: athens
spec:
  replicas: 2
  selector:
    matchLabels:
      app: athens
  template:
    metadata:
      labels:
        app: athens
    spec:
      containers:
        - name: athens
          image: docker.io/gomods/athens:v0.15.0
          ports:
            - containerPort: 3000
          env:
            - name: ATHENS_STORAGE_TYPE
              value: disk
          volumeMounts:
            - name: storage
              mountPath: /var/lib/athens
      volumes:
        - name: storage
          persistentVolumeClaim:
            claimName: athens-storage
---
apiVersion: v1
kind: Service
metadata:
  name: athens
spec:
  selector:
    app: athens
  ports:
    - port: 3000
      targetPort: 3000

CI 设置 GOPROXY=http://athens:3000;PVC 按 module 缓存增长。

最新 Tag(20 条)

查看全部 119 个 Tag →
Tag架构推送时间大小Digest同步期望操作
docker.io/gomods/athens
:canary
linux/amd64linux/arm64
2026/06/19 11:0974.4 MBsha256:a5e673a542f5
docker.io/gomods/athens
:latest
linux/amd64linux/arm64
2026/06/15 06:1475.0 MBsha256:7a9f46ef9bdc
docker.io/gomods/athens
:v0.18.0
linux/amd64linux/arm64
2026/06/15 06:1475.0 MBsha256:7a9f46ef9bdc
docker.io/gomods/athens
:v0.17.1
linux/amd64linux/arm64
2026/05/13 03:0374.7 MBsha256:a3466b63bba9
docker.io/gomods/athens
:v0.17.0
linux/amd64linux/arm64
2026/04/15 03:3374.7 MBsha256:f9181c20fa79
docker.io/gomods/athens
:v0.16.2
linux/amd64linux/arm64
2026/02/01 21:1072.4 MBsha256:6e76d74cde9a
docker.io/gomods/athens
:v0.16.1
linux/amd64linux/arm64
2025/09/13 05:1571.2 MBsha256:9b30d1f052c6
docker.io/gomods/athens
:v0.16.0
linux/amd64linux/arm64
2025/04/18 18:2467.0 MBsha256:233d3a422c66
docker.io/gomods/athens
:v0.15.4
linux/amd64linux/arm64
2024/10/29 23:4062.0 MBsha256:78a4d6feceef
docker.io/gomods/athens
:v0.15.3
linux/arm64linux/amd64
2024/10/22 08:5157.8 MBsha256:a8e744441689
docker.io/gomods/athens
:v0.15.2
linux/amd64linux/arm64
2024/10/01 01:0659.7 MBsha256:6fb2ccd4d828
docker.io/gomods/athens
:v0.15.1
linux/amd64linux/arm64
2024/09/09 12:4163.0 MBsha256:f5ad2f57bd0e
docker.io/gomods/athens
:v0.15.0
linux/amd64linux/arm64
2024/09/09 12:1063.0 MBsha256:4f0b74e1608b
docker.io/gomods/athens
:v0.14.1
linux/amd64linux/arm64
2024/06/03 07:4562.7 MBsha256:af30e3d4696d
docker.io/gomods/athens
:v0.14.0
linux/amd64linux/arm64
2024/05/02 00:060.0 MBsha256:ac3f3d0e4d4c
docker.io/gomods/athens
:v0.13.3
linux/amd64linux/arm64
2024/04/15 05:020.0 MBsha256:7037d4d40a14
docker.io/gomods/athens
:v0.13.2
linux/arm64linux/amd64
2024/03/28 09:0359.9 MBsha256:edba902d7359
docker.io/gomods/athens
:v0.13.1
linux/amd64linux/arm64
2024/01/04 20:1461.5 MBsha256:dc496d3162a0
docker.io/gomods/athens
:v0.13.0
linux/amd64linux/arm64
2023/12/12 16:2961.5 MBsha256:320128a6725c
docker.io/gomods/athens
:v0.12.1
linux/amd64
2023/04/26 14:130.0 MBsha256:96c472ceecbe