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?

dockerのload metadataエラーを蹴散らす

Last updated at Posted at 2024-12-02

問題

dockerでイメージを起動しようとするとload metadataエラーが発生する。

状況

使用パソコン:Macbook Pro(M3チップ)
事象:DockerFileとdocker-compose.yamlを記述し、docker compose upするとload metadataエラーが出る。

sudo docker compose up
[+] Building x.xs (x/x) FINISHED                                                                            docker:desktop-linux
 => [directory-name internal] load build definition from Dockerfile                                                        0.0s
 => => transferring dockerfile: 722B         
 => ERROR [directory-name internal] load metadata for docker.io/library/image-name

解決方法

以下のように最初にdocker pullでイメージを入手する。

docker pull docker.io/library/image-name

イメージを入手後、docker compose upすれば無事に立ち上がる。

終わりに

どうやらdocker imageがない状態から一気にやるとエラーが発生してしまうことが多いみたい。
dockerを久しぶりに使うたび色んなエラーが出てきてひたすらググってる気がする。

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?