Skip to content

I want to get Docker-Content-Digest header response for request to logstash container. #1248

Answered by tadashi-oya
tadashi-oya asked this question in Q&A
Discussion options

You must be logged in to vote

It was a simple mistake.

"dtagdevsec/logstash" instead of "library/dtagdevsec/logstash" was the correct choice.

tadashi@S1056419:~$ TOKEN=$(curl -s "https://auth.docker.io/token?service=registry.docker.io&scope=repository:dtagdevsec/logstash:pull" | jq -r '.token')

tadashi@S1056419:~$ curl --head -H 'Accept: application/vnd.docker.distribution.manifest.v2+json' -H "Authorization: Bearer $TOKEN" https://registry-1.docker.io/v2/dtagdevsec/logstash/manifests/2204
HTTP/1.1 200 OK
content-length: 950
content-type: application/vnd.docker.distribution.manifest.v2+json
docker-content-digest: sha256:01ae60146d910da0a779d892a9fe08415778ba4ee20d5c94d5a3d7d5ebc5bdc3

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tadashi-oya
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant