Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support removing podman images from docker registry #117

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,11 @@ def get_auth_schemes(r,path):
class Registry:

# this is required for proper digest processing
# for docker images: application/vnd.docker.distribution.manifest.v2+json
# for podman images: application/vnd.oci.image.manifest.v1+json
# without the latter, digests for podman images are not fetched and as a result, podman images are not removed
HEADERS = {"Accept":
"application/vnd.docker.distribution.manifest.v2+json"}
"application/vnd.docker.distribution.manifest.v2+json,application/vnd.oci.image.manifest.v1+json"}

def __init__(self):
self.username = None
Expand Down