Communicate with docker registry
curl http://<registry:port>/v2/_catalog
curl http://<registry:port>/v2/<IMAGE>/tags/list
curl -H "Authorization: Bearer $token" \
"https://registry.hub.docker.com/v2/<REPOSITORY>/<IMAGE>/manifests/latest
curl -fsSL \
-H 'Accept: application/vnd.docker.distribution.manifest.v2+json' \
-H 'Accept: application/vnd.docker.distribution.manifest.list.v2+json' \
-H 'Accept: application/vnd.docker.distribution.manifest.v1+json' \
"http://<registry:port>/v2/<IMAGENAME>/manifests/<DIGEST|TAG>"
curl "https://auth.docker.io/token?service=registry.docker.io&scope=repository:<REPOSITORY>/<IMAGE>:pull"
curl -s -H "Authorization: Bearer $token" "https://registry.hub.docker.com/v2/<REPOSITORY>/<IMAGE>/manifests/latest