티스토리 뷰
Python/환경구축,설정,에러
[Solved]ERROR: Version in "./docker-compose.yml" is unsupported
Hhhh8 2019. 5. 30. 19:29Try
$ 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
- 기존에 sudo apt로 설치하면 옛날버전이 설치되기 때문에 지운다.
$ sudo apt-get remove docker-compose
- 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
- 권한주기
``$ chmod +x /usr/local/bin/docker-compose``
+) 관련 github (https://github.com/docker/compose/releases)
'Python > 환경구축,설정,에러' 카테고리의 다른 글
Create a JSON file in command line and POST it with curl (0) | 2019.06.04 |
---|---|
request.args and request.json -- 삽질 (0) | 2019.06.03 |
[Solved] curl:(3) malformed (0) | 2019.05.30 |
[Solved]FileNotFoundError:[Errno 2] No such file or directory: '/mnt/hgfs/jinie/flask_base/run.py (1) | 2019.05.30 |
[Solved]OSError: [Errno 8] Exec format error (0) | 2019.05.29 |