macOS에서 ~/.docker/config.json의 authes에 인증 문자열이 없는 경우 해결
                                            
                                                
                                                
                                                
                                                
                                                
                                                 4876 단어  MacOSX도커kubernetes
                    
{
    "auths": {
        "https://index.docker.io/v1/": {}
    },
    "HttpHeaders": {
        "User-Agent": "Docker-Client/19.03.1 (darwin)"
    },
    "credsStore": "desktop",
    "experimental": "disabled",
    "stackOrchestrator": "swarm"
}
~/.docker/config.json 하지만 이런 내용이 되어 있어 authes에 auth가 없을 때 kubernetes로 private인 Docker hub로부터 이미지를 취득하려고 하면 설정을 만들 수 없어서 곤란하네요. 이것은 아마도 Mac 용 Docker를 사용할 때 발생합니다.Mac용 Docker 설정 화면을 엽니다.

열면
Securely store Docker login in macOS keychain 의 체크를 해제합니다.
그런 다음
~/.docker/config.json에서 credsStore의 키를 지우고,{
    "auths": {
        "https://index.docker.io/v1/": {}
    },
    "HttpHeaders": {
        "User-Agent": "Docker-Client/19.03.1 (darwin)"
    },
    "experimental": "disabled",
    "stackOrchestrator": "swarm"
}
이렇게하면
docker login 명령으로 로그인하면,{
    "auths": {
        "https://index.docker.io/v1/": {
            "auth": "ここにはいる"
        }
    },
    "HttpHeaders": {
        "User-Agent": "Docker-Client/19.03.1 (darwin)"
    },
    "experimental": "disabled",
    "stackOrchestrator": "swarm"
}
이렇게 됩니다. 이게 뭐야.
Reference
이 문제에 관하여(macOS에서 ~/.docker/config.json의 authes에 인증 문자열이 없는 경우 해결), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/reoring/items/a1c229fd895f3c1b43bb텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
                                
                                
                                
                                
                                
                                우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)