0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

dockerがビルドできない「failed to solve with frontend dockerfile.v0」の対処

Posted at

macOSでdocker desktopをアップデートしたところ以下のエラーでビルドできなくなりました。

 % sudo docker build -t elasticsearch-demo .
[+] Building 1.4s (2/3)                                                                                                                                                                            
[+] Building 1.4s (3/3) FINISHED                                                                                                                                                                   
 => [internal] load build definition from Dockerfile                                                                                                                                          0.0s
 => => transferring dockerfile: 37B                                                                                                                                                           0.0s
 => [internal] load .dockerignore                                                                                                                                                             0.0s
 => => transferring context: 2B                                                                                                                                                               0.0s
 => ERROR [internal] load metadata for docker.io/opensearchproject/opensearch:1.3.2                                                                                                           1.3s
------
 > [internal] load metadata for docker.io/opensearchproject/opensearch:1.3.2:
------
failed to solve with frontend dockerfile.v0: failed to create LLB definition: rpc error: code = Unknown desc = error getting credentials - err: exit status 1, out: ``

どうやら、buildkitとの不整合が原因らしいので(曖昧)buildkitを使わないように以下のコマンド使用したら解決しました。

DOCKER_BUILDKIT=0  docker build -t elasticsearch-demo . 
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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?