Clean the Docker Registry by removing untagged repositories https://github.com/ricardobranco777/clean_registry
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

Dockerfile 316B

123456789101112
  1. FROM registry:2
  2. RUN apk --no-cache add python3 python3-dev
  3. RUN pip3 install --no-cache-dir docker docker[tls] pyyaml
  4. COPY clean_registry.py /usr/local/bin/clean_registry.py
  5. RUN python3 -OO -m compileall /usr/local/bin/clean_registry.py
  6. ENTRYPOINT ["/usr/bin/python3", "/usr/local/bin/clean_registry.py"]
  7. CMD []