镜像概览
- 完整引用
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:09 | 74.4 MB | sha256:a5e673a542f5… | |||
docker.io/gomods/athens :latest | linux/amd64linux/arm64 | 2026/06/15 06:14 | 75.0 MB | sha256:7a9f46ef9bdc… | |||
docker.io/gomods/athens :v0.18.0 | linux/amd64linux/arm64 | 2026/06/15 06:14 | 75.0 MB | sha256:7a9f46ef9bdc… | |||
docker.io/gomods/athens :v0.17.1 | linux/amd64linux/arm64 | 2026/05/13 03:03 | 74.7 MB | sha256:a3466b63bba9… | |||
docker.io/gomods/athens :v0.17.0 | linux/amd64linux/arm64 | 2026/04/15 03:33 | 74.7 MB | sha256:f9181c20fa79… | |||
docker.io/gomods/athens :v0.16.2 | linux/amd64linux/arm64 | 2026/02/01 21:10 | 72.4 MB | sha256:6e76d74cde9a… | |||
docker.io/gomods/athens :v0.16.1 | linux/amd64linux/arm64 | 2025/09/13 05:15 | 71.2 MB | sha256:9b30d1f052c6… | |||
docker.io/gomods/athens :v0.16.0 | linux/amd64linux/arm64 | 2025/04/18 18:24 | 67.0 MB | sha256:233d3a422c66… | |||
docker.io/gomods/athens :v0.15.4 | linux/amd64linux/arm64 | 2024/10/29 23:40 | 62.0 MB | sha256:78a4d6feceef… | |||
docker.io/gomods/athens :v0.15.3 | linux/arm64linux/amd64 | 2024/10/22 08:51 | 57.8 MB | sha256:a8e744441689… | |||
docker.io/gomods/athens :v0.15.2 | linux/amd64linux/arm64 | 2024/10/01 01:06 | 59.7 MB | sha256:6fb2ccd4d828… | |||
docker.io/gomods/athens :v0.15.1 | linux/amd64linux/arm64 | 2024/09/09 12:41 | 63.0 MB | sha256:f5ad2f57bd0e… | |||
docker.io/gomods/athens :v0.15.0 | linux/amd64linux/arm64 | 2024/09/09 12:10 | 63.0 MB | sha256:4f0b74e1608b… | |||
docker.io/gomods/athens :v0.14.1 | linux/amd64linux/arm64 | 2024/06/03 07:45 | 62.7 MB | sha256:af30e3d4696d… | |||
docker.io/gomods/athens :v0.14.0 | linux/amd64linux/arm64 | 2024/05/02 00:06 | 0.0 MB | sha256:ac3f3d0e4d4c… | |||
docker.io/gomods/athens :v0.13.3 | linux/amd64linux/arm64 | 2024/04/15 05:02 | 0.0 MB | sha256:7037d4d40a14… | |||
docker.io/gomods/athens :v0.13.2 | linux/arm64linux/amd64 | 2024/03/28 09:03 | 59.9 MB | sha256:edba902d7359… | |||
docker.io/gomods/athens :v0.13.1 | linux/amd64linux/arm64 | 2024/01/04 20:14 | 61.5 MB | sha256:dc496d3162a0… | |||
docker.io/gomods/athens :v0.13.0 | linux/amd64linux/arm64 | 2023/12/12 16:29 | 61.5 MB | sha256:320128a6725c… | |||
docker.io/gomods/athens :v0.12.1 | linux/amd64 | 2023/04/26 14:13 | 0.0 MB | sha256:96c472ceecbe… |