DevOps/Docker
[Docker] docker login 시 User interaction is not allowed 문제 해결
기록하는 백앤드개발자
2023. 8. 5. 22:16
반응형
ㅁ 개요
ㅇ Docker 로그인 시 Credentail 문제가 발생하여 해결 과정을 정리하였습니다.
ㅁ 에러 내용
$ docker login ✔ 6322 21:59:31
Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one.
Username: ilovefran
Password:
Error saving credentials: error storing credentials - err: exit status 1, out: `User interaction is not allowed.`
ㅁ 해결방법
# docker-credential-osxkeychain 삭제
$ sudo rm /usr/local/bin/docker-credential-osxkeychain
ㅇ docker-credential-osxkeychain 삭제합니다.
ㅇ ~/.docker/config.json 파일의 credsStore을 ""으로 수정합니다.
ㅇ 이후 Docker을 재기동해야 합니다. 이전에는 적용되지 않습니다.
ㅁ 해결 후
$ docker login ✔ 6326 22:05:21
Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one.
Username: ilovefran
Password:
WARNING! Your password will be stored unencrypted in /Users/peterseo/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store
Login Succeeded
Logging in with your password grants your terminal complete access to your account.
For better security, log in with a limited-privilege personal access token. Learn more at https://docs.docker.com/go/access-tokens/
ㅇ 로그인 성공 후 config.json에 password가 저장되어 있었습니다.
ㅁ 참조
반응형