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 Compose】`version` に関する警告の解消法

Posted at

【Docker Compose】version に関する警告の解消法

発生したエラー

WARN[0000] /path/to/compose.yaml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion

どう対応したか?

compose.yaml から以下の行を削除しました。

version: "3.8"  # ← これを削除

なぜこのエラーが出たのか?

  • Docker Compose V2 からは version の指定が 非推奨(obsolete) になったためです。
  • Docker がファイルの内容を見て、自動的に最新仕様で解釈してくれるようになっています。

まとめ

  • version はもう書かなくていいということでした。
  • 警告をなくしたい場合は削除しましょう!
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?