Skip to content

Instantly share code, notes, and snippets.

@timosalm
Created June 30, 2020 06:31
Show Gist options
  • Save timosalm/1b0220e6f799b9c927825f3308a43767 to your computer and use it in GitHub Desktop.
Save timosalm/1b0220e6f799b9c927825f3308a43767 to your computer and use it in GitHub Desktop.
Get used CF Docker images
#!/usr/bin/env bash
export CC_API_URL=https://api.run.pivotal.io
curl -G "${CC_API_URL}/v3/packages" \
--data-urlencode "types=docker" \
--data-urlencode "per_page=5000" \
-H "Authorization: $(cf oauth-token)" | jq '.resources[].data?.image?'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment