티스토리 뷰

Try

$ docker-compose up -d

Problem

ERROR: Version in "./docker-compose.yml" is unsupported.

Cause

docker-compose v3 syntax is not supported by docker-compose until version 1.10.0.
You'll need to update docker-compose to a newer version to get rid of that error. Current version is 1.16.1

Solved

  1. 기존에 sudo apt로 설치하면 옛날버전이 설치되기 때문에 지운다.
    $ sudo apt-get remove docker-compose
  2. curl을 이용하여 최신버전으로 설치
    $ curl -L https://github.com/docker/compose/releases/download/1.25.0-rc1/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose 
  3. 권한주기
    ``$ chmod +x /usr/local/bin/docker-compose``

 

+) 관련 github (https://github.com/docker/compose/releases)

 

공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2025/01   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함