Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用-cachedir参数后,cache size和number of files都显示N/A,无法正常显示数值。 #15

Open
rayblade opened this issue Dec 7, 2022 · 1 comment

Comments

@rayblade
Copy link

rayblade commented Dec 7, 2022

使用-cachedir参数后,cache size和number of files都显示N/A,无法正常显示数值。

@zkc226
Copy link

zkc226 commented Jan 29, 2023

代码里面写死了统计路径是 ./.aptcache,真机环境下可以通过软链接指向目标目录解决,容器环境下可以通过volume挂载解决:

services:
  apt-proxy:
    image: soulteary/apt-proxy:v0.5.3
    container_name: apt-proxy
    hostname: apt-proxy
    command:
      - --mode=all
      - --port=80
      - --ubuntu=cn:aliyun
      - --debian=cn:aliyun
      - --alpine=cn:aliyun
      - --centos=cn:aliyun
      - --cachedir=/.aptcache
    volumes:
      - ./var/aptcache:/.aptcache:rw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants