This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
## Usage: ./get_docker_layer_links.sh public.ecr.aws/amazonlinux/amazonlinux:2023 | |
# URLs returned can then be used to submit proxy whitelist request in enterprise environment. | |
set -euo pipefail | |
if [ $# -ne 1 ]; then | |
echo "Usage: $0 <image:tag>" | |
echo "Example: $0 public.ecr.aws/amazonlinux/amazonlinux:2023" | |
exit 1 |