How hard is it to get a digest of a docker image's manifest?
Update (October 13th): The encoding mismatch is made on purpose as described in this issue. The current work is present in this repo.
So I needed to get a digest of a manifest. Manifest is a text file in JSON format which contains metadata for a docker image. Manifest is part of v2 docker registry API.
We want to have this functionality (f(manifest) → digest) in pulp so I needed to do that in python. I guess it would pretty easy to do in Go because I would be able to use code from distribution directly.