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

Not working with dperson/samba #202

Open
fabssor opened this issue Dec 17, 2023 · 0 comments
Open

Not working with dperson/samba #202

fabssor opened this issue Dec 17, 2023 · 0 comments

Comments

@fabssor
Copy link

fabssor commented Dec 17, 2023

Hi,

thanks for the create container. Was exactly what I was looking for.
I got a problem with dperson/ container (https://github.com/dperson/samba):

Failed to check for new Dockerhub image digest: TypeError: Cannot read properties of undefined (reading 'split')
17.12.2023 11:51:33 [error] 	Cannot read properties of undefined (reading 'split')
17.12.2023 11:51:33 [warn] 	Failed to find new digest for image dperson/samba:latest

I think the problem is that the Dockerhub API does not return digest in the repsonse payload (https://registry.hub.docker.com/v2/repositories/dperson/samba/tags/latest)

{
    "count": 1,
    "next": null,
    "previous": null,
    "results": [
        {
            "creator": 102881,
            "id": 52843,
            "images": [
                {
                    "architecture": "arm64",
                    "features": "",
                    "variant": "v8",
                    "digest": "sha256:4cb487986c024c4b42c7900b03ee5cc051d66ba57ec687c9f393e64a54cac3e3",
                    "os": "linux",
                    "os_features": "",
                    "os_version": null,
                    "size": 20678838,
                    "status": "active",
                    "last_pulled": "2023-12-17T10:48:50.583681Z",
                    "last_pushed": "2021-03-31T17:47:56.206641Z"
                },
                {
                    "architecture": "arm",
                    "features": "",
                    "variant": "v6",
                    "digest": "sha256:9295923d089cb29c56786c1092c295442f6ca88e3362deb7600a6774cb63434b",
                    "os": "linux",
                    "os_features": "",
                    "os_version": null,
                    "size": 20204930,
                    "status": "active",
                    "last_pulled": "2023-12-17T11:00:02.906257Z",
                    "last_pushed": "2021-03-31T17:34:58.064709Z"
                },
                {
                    "architecture": "amd64",
                    "features": "",
                    "variant": null,
                    "digest": "sha256:e1d2a7366690749a7be06f72bdbf6a5a7d15726fc84e4e4f41e967214516edfd",
                    "os": "linux",
                    "os_features": "",
                    "os_version": null,
                    "size": 19994825,
                    "status": "active",
                    "last_pulled": "2023-12-17T11:00:07.324957Z",
                    "last_pushed": null
                }
            ],
            "last_updated": "2021-03-31T17:47:56.975942Z",
            "last_updater": 102881,
            "last_updater_username": "dperson",
            "name": "latest",
            "repository": 111754,
            "full_size": 19994825,
            "v2": true,
            "tag_status": "active",
            "tag_last_pulled": "2023-12-17T11:00:07.324957Z",
            "tag_last_pushed": "2021-03-31T17:47:56.975942Z",
            "media_type": "application/vnd.docker.distribution.manifest.list.v2+json",
            "content_type": "image"
        }
    ]
}

If I search the docker hub API Spec the digest key is only mentioned per "image" not in the main object in the response.
Any way to work around this? https://docs.docker.com/docker-hub/api/latest/#tag/repositories/paths/~1v2~1namespaces~1%7Bnamespace%7D~1repositories~1%7Brepository%7D~1tags~1%7Btag%7D/get

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant