Closed mylespollie closed 7 years ago
DOCKER_LOGIN=aws ecr get-login PASSWORD=echo $DOCKER_LOGIN | cut -d' ' -f6 REGISTRY=echo $DOCKER_LOGIN | cut -d' ' -f9 | sed "s/https:\/\///" DOCKER_USER=AWS DOCKER_PASSWORD=${PASSWORD} ./klar ${REGISTRY}/my-image
aws ecr get-login
echo $DOCKER_LOGIN | cut -d' ' -f6
echo $DOCKER_LOGIN | cut -d' ' -f9 | sed "s/https:\/\///"
What is sed doing here? Is it possible to scan all images in the registry at once instead of just a specific image?
DOCKER_LOGIN=
aws ecr get-login
PASSWORD=echo $DOCKER_LOGIN | cut -d' ' -f6
REGISTRY=echo $DOCKER_LOGIN | cut -d' ' -f9 | sed "s/https:\/\///"
DOCKER_USER=AWS DOCKER_PASSWORD=${PASSWORD} ./klar ${REGISTRY}/my-imageWhat is sed doing here? Is it possible to scan all images in the registry at once instead of just a specific image?