如何修复 Quay 'Create new account' 按钮 - 无反应
问题
当你在 Quay 容器仓库中尝试注册时:

你点击"Create new account"按钮,但没有任何反应。
在 javascript 控制台中,你看到 401 Unauthorized 错误。
在 quay 服务器日志中,你看到以下错误消息:
quay_error_log.txt
[ERROR] [util.http] Error 401: Anonymous access is not allowed; Arguments: {'url': 'https://quay.techoverflow.net/api/v1/user/', 'status_code': 401, 'message': 'Anonymous access is not allowed'}解决方案
在你的 quay 配置中,你需要设置
quay_config_anonymous_access.yaml
FEATURE_ANONYMOUS_ACCESS: true并重启 quay。这将允许匿名访问注册页面。你还需要在 quay 完成重启后重新加载页面 - 不这样做将导致不可见的 CSRF 令牌错误!。
如果需要,你可以在之后禁用匿名访问。
Check out similar posts by category:
Docker
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow