WARNING! Using --password via the CLI is insecure. Use --password-stdin.

2023. 9. 19. 11:40Linux/docker

728x90
SMALL

- 개요

docker login 할때 아래와 같은 warning 발생
WARNING! Using --password via the CLI is insecure. Use --password-stdin.

 

- 발생

docker login --username AWS -p $(aws ecr get-login-password --region ap-northeast-2) <account>.dkr.ecr.ap-northeast-2.amazonaws.com/

 

- 해결

aws ecr get-login-password --region ap-northeast-2 | docker login --username AWS --password-stdin "$(aws sts get-caller-identity --query Account --output text).dkr.ecr.ap-northeast-2.amazonaws.com"

 

 

728x90
LIST