LoginSignup
0
0

More than 1 year has passed since last update.

dockerログイン時エラー対処法 Error saving credentials: error storing credentials - err: exit status 1, out: `Post "http://ipc/registry/credstore-updated": open \\.\pipe\dockerBackendApiServer: The system cannot find the file specified.`

Last updated at Posted at 2022-11-21
Error saving credentials: error storing credentials - err: exit status 1, out: `Post "http://ipc/registry/credstore-updated": open \\.\pipe\dockerBackendApiServer: The system cannot find the file specified.`

の解消方法

発生要件

以下コマンド実行時

aws ecr get-login-password --region ap-northeast-1 | docker login --username AWS --password-stdin 123456789012.dkr.ecr.ap-northeast-1.amazonaws.com

解消方法

/home/user/.docker/config.jsonの"credsStore": "desktop.exe"を削除して再実行する

修正前

{
        "auths": {
                "https://index.docker.io/v1/": {}
        },
        "credsStore": "desktop.exe"
}

修正後

{
        "auths": {
                "https://index.docker.io/v1/": {}
        }
}

ちなみに正常実行後は以下のようにconfig.jsonに認証情報が埋め込まれる。credsStore..部分が悪さして、それができなかった模様

{
        "auths": {
                "123456789012.dkr.ecr.ap-northeast-1.amazonaws.com": {
                        "auth": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
                },
                "https://index.docker.io/v1/": {}
        }
}

参考にさせていただいた情報

https://www.capybara-engineer.com/entry/2021/12/24/114535
エラーは違うが同じ操作で解消

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0