1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-22 23:09:41 +02:00

feat(docker): add --pull-limit-check-disabled cli flag [BE-11739] (#581)

This commit is contained in:
Oscar Zhou 2025-04-03 09:13:01 +13:00 committed by GitHub
parent 4c1e80ff58
commit a5d857d5e7
8 changed files with 63 additions and 46 deletions

View file

@ -80,6 +80,13 @@ func (handler *Handler) endpointDockerhubStatus(w http.ResponseWriter, r *http.R
}
}
if handler.PullLimitCheckDisabled {
return response.JSON(w, &dockerhubStatusResponse{
Limit: 10,
Remaining: 10,
})
}
httpClient := client.NewHTTPClient()
token, err := getDockerHubToken(httpClient, registry)
if err != nil {