🙌
【Docker】BuildKitの関係(?)でimageがビルドできない場合の解決方法
概要
Dockerのimageビルドが以下のエラーで失敗する場合の解決方法です。
failed to solve: failed to solve with frontend dockerfile.v0: failed to create LLB definition: pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed
※ BuildKitを無効化にすることで解決できたため、「BuildKitの関係(?)」とタイトルには書いていますが、BuildKitのせいであるかは断定できません。(詳しい方がいらっしゃいましたら、コメントでご教示いただければ、ありがたいです。)
執筆時環境
- Windows10
- Docker for Windows
v4.6.1
- Docker
v20.10.13
解決方法
- Docker Desktop for Windowsの
Dashboard
→settings
→Docker Engine
の手順でDocker daemonの設定を開き、buildKit
をfalse
にします。 -
Apply & Restart
ボタンを押下し、適応&Restartします。
{
// 中略
"features": {
"buildkit": false
}
}
Discussion