一种自动弃用DockerHub仓库的新方法:批量归档
目前,尚无明确的方法来弃用 DockerHub 仓库。向用户传达容器镜像不再维护的信息至关重要,原因有很多。<p>DockerHub 提供了归档功能,可以将仓库标记为只读,但当你在 DockerHub 上托管超过 2 万个基础镜像时,这一过程难以自动化。<p>为了解决这个问题,我编写了一个 Playwright 脚本,自动化 DockerHub 用户界面,并批量归档 DockerHub 仓库。
查看原文
At the moment, there isn't a clear way to deprecate a DockerHub repository. Communicating that the container images are no longer being maintained is essential to the users for a number of reasons.<p>DockerHub offers the archive feature to mark repositories as read only but that can be automated when you have about 20k+ base images hosted on DockerHub.<p>To solve this, I built a Playwright script that automates the DockerHub UI and mass-archives DockerHub repositories.