docker-apt-cacher-ng icon indicating copy to clipboard operation
docker-apt-cacher-ng copied to clipboard

Cache expiry functionality in setting `docker-compose.yml`?

Open yjiangnan opened this issue 1 year ago • 0 comments

How can I achieve the following cache expiry functionality in setting docker-compose.yml? ChatGPT says "The -e argument does not have any associated value, which makes it unnecessary in this context. It appears to be a mistake or a typo.`

Cache expiry
Using the [Command-line arguments](https://github.com/sameersbn/docker-apt-cacher-ng#command-line-arguments) feature, you can specify the -e argument to initiate Apt-Cacher NG's cache expiry maintenance task.

docker run --name apt-cacher-ng --init -it --rm \
  --publish 3142:3142 \
  --volume /srv/docker/apt-cacher-ng:/var/cache/apt-cacher-ng \
  sameersbn/apt-cacher-ng:3.7.4-20220421 -e

yjiangnan avatar May 16 '23 14:05 yjiangnan