mirror of
https://github.com/aquasecurity/kube-bench.git
synced 2024-12-23 15:18:07 +00:00
Fix AWS ECR authentication docs (#781)
The command you listed here did not work. The command from the official documentation did: https://docs.aws.amazon.com/AmazonECR/latest/userguide/getting-started-cli.html aws ecr get-login-password --region region | docker login --username AWS --password-stdin aws_account_id.dkr.ecr.region.amazonaws.com
This commit is contained in:
parent
4ebfe684c9
commit
ecdd0b4158
@ -219,7 +219,7 @@ aws ecr create-repository --repository-name k8s/kube-bench --image-tag-mutabilit
|
|||||||
```
|
```
|
||||||
git clone https://github.com/aquasecurity/kube-bench.git
|
git clone https://github.com/aquasecurity/kube-bench.git
|
||||||
cd kube-bench
|
cd kube-bench
|
||||||
aws ecr get-login-password --region <AWS_REGION> | docker login --username <AWS_USERNAME> --password-stdin <AWS_ACCT_NUMBER>.dkr.ecr.<AWS_REGION>.amazonaws.com
|
aws ecr get-login-password --region <AWS_REGION> | docker login --username AWS --password-stdin <AWS_ACCT_NUMBER>.dkr.ecr.<AWS_REGION>.amazonaws.com
|
||||||
docker build -t k8s/kube-bench .
|
docker build -t k8s/kube-bench .
|
||||||
docker tag k8s/kube-bench:latest <AWS_ACCT_NUMBER>.dkr.ecr.<AWS_REGION>.amazonaws.com/k8s/kube-bench:latest
|
docker tag k8s/kube-bench:latest <AWS_ACCT_NUMBER>.dkr.ecr.<AWS_REGION>.amazonaws.com/k8s/kube-bench:latest
|
||||||
docker push <AWS_ACCT_NUMBER>.dkr.ecr.<AWS_REGION>.amazonaws.com/k8s/kube-bench:latest
|
docker push <AWS_ACCT_NUMBER>.dkr.ecr.<AWS_REGION>.amazonaws.com/k8s/kube-bench:latest
|
||||||
|
Loading…
Reference in New Issue
Block a user