Automatically monitoring image repositories and tags for updates using Anchore's "watch" feature is extremely useful but may generate a very large number of registry pull requests that trigger rate limiting. If rate limiting has become an issue with your Anchore deployment, we recommend that you disable watching for all repositories and tags and then gradually re-enable watching where required. To assist you in disabling watched repositories and tags throughout your Anchore deployment, we have developed a script to do this automatically.
See this article for more information about working with Docker Hub image pull request limits.
1. Ensure that the host that will run the script has Python 3 installed and is able to access your Anchore API endpoint.
2. Download the script using the link below.
3. Navigate to the directory containing the script and make the file executable:
chmod +x disable_subscriptions.py
4. Run the script:
./disable_subscriptions.py [-d | --dry-run] -u <admin_user> -p <admin_pass> -a <account> -r <anchore_api_endpoint>