9
3

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.

version is obsolete とかいう謎の警告が出た件

Posted at

はじめに

Dockerをアップデートしたら、今まで見たことない謎の警告が出るようになったので調べてみた

問題

versionの記述は廃止されたとのこと。

WARN[0000] .../docker-compose.yml: `version` is obsolete 

解決方法

docker-compose.ymlの先頭に下記のようにバージョン情報を書くと思います。

これを削除すればOK。

version: "3.8"

おわりに

Docker Composeのバージョン2移行はオプションなので、そもそも書かなくて良かったのだそう。

バージョン1の場合は不明なので、もし出会ったら調べようと思います。

参考

9
3
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
9
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?