1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
docker volume create --name athens-data

echo "D">/var/lib/containers/storage/volumes/athens-data/_data/filterFile.txt

podman run -d \
--name athens \
-p 4000:3000 \
-v athens-data:/var/lib/athens \
-e ATHENS_DISK_STORAGE_ROOT=/var/lib/athens \
-e ATHENS_STORAGE_TYPE=disk \
-e ATHENS_FILTER_FILE=/var/lib/athens/filterFile.txt \
-e ATHENS_GLOBAL_ENDPOINT=https://goproxy.cn \
gomods/athens:latest
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
podman volume create athens-data

vim /var/lib/containers/storage/volumes/athens-data/_data/download-mode

downloadURL = "https://goproxy.cn"
mode = "async_redirect"

podman run -d \
--name athens \
-p 4000:3000 \
-v athens-data:/var/lib/athens \
-e ATHENS_DISK_STORAGE_ROOT=/var/lib/athens \
-e ATHENS_STORAGE_TYPE=disk \
-e ATHENS_DOWNLOAD_MODE=file:/var/lib/athens/download-mode \
gomods/athens:latest

https://docs.gomods.io/