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 3 years have passed since last update.

vagrantoを用いた環境構築時に出たエラーなど

Last updated at Posted at 2021-04-02

【ちょっと躓いたこと】

$ vagrant up
~
~
Password:

●解決方法
PCのログインパスワードを入力
※何のパスワードなのか、だいぶ悩まされた

【遭遇したエラー内容】

vagrant
$ docker-compose ps
ERROR: Version in "./docker-compose.yml" is unsupported. You might be seeing this error because you're using the wrong Compose file version. Either specify a supported version (e.g "2.2" or "3.3") and place your service definitions under the `services` key, or omit the `version` key and place your service definitions at the root of the file to use version 1.
For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/

●解決方法
docker-compose のバージョンを上げる

vagrant
$ sudo curl -L "https://github.com/docker/compose/releases/download/1.28.5/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
※1.28.5はその時の最新バージョンに修正

$ docker-compose up
バージョン確認
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?