새소식

Docker

Docker - failed to solve: ~~~: error getting credentials - err: exit status 1, out: `` 에러

  • -

개요

MacOS 환경에서 docker-compose 사용 시 해당 에러가 발생했다.

 => ERROR [~~~ internal] load metadata for docker.io/library/~~~                             0.7s
------
 > [~~~ internal] load metadata for docker.io/library/~~~:
------
failed to solve: ~~~: error getting credentials - err: exit status 1, out: ``


해결방법

docker 설정의 credsStore부분을 변경한다

파일 경로 : ~/.docker/config.json

sudo vi ~/.docker/config.json

위 명령어로 들어간 파일의 내용 중 credsStore 부분이 desktop으로 되어있다면 osxkeychain, osxkeychain으로 되어있다면 desktop으로 수정한다.

{
  "auths": {
    "https://index.docker.io/v1/": {}
  },
  "credsStore": "osxkeychain" or "desktop",
  "currentContext": "desktop-linux"
}

참고

 

 

ERROR: failed to solve: error getting credentials - err: exit status 1, out: ``

This is the topic I mentioned before Try what I described there to make the docker command executable again. Out of curiosity, did you install Docker Desktop as root? I know HomeBrew can also install Docker desktop but if you run it as root it might break

forums.docker.com

 

반응형
Contents

포스팅 주소를 복사했습니다

이 글이 도움이 되었다면 공감 부탁드립니다.