Docker

[Docker]error: version in "./docker-compose.yaml" 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 `s..

2023. 11. 24. 14:32
목차
  1. 0. 발생 
  2. 1. 원인
  3. 2. 구 버전 제거
  4. 3. 새로운 버전 설치 

0. 발생 

airflow docker-compose를 진행 중에 다음과 같은 오류가 발생 하였다.  

error: version in "./docker-compose.yaml" 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.

https://stackoverflow.com/questions/49839028/how-to-upgrade-docker-compose-to-latest-version

 

How to upgrade docker-compose to latest version

I have installed docker-compose using the command sudo apt install docker-compose It installed docker-compose version 1.8.0 and build unknown I need the latest version of docker-compose or at le...

stackoverflow.com

1. 원인

docker-compose version이 1.23으로 해당 컴포즈 파일을 지원하지 않았고 최신 도커 컴포즈를 설치 해야 했다.

2. 구 버전 제거

설치 했던 방법에 맞추어 제거

# apt-get docker-compose 설치시
sudo apt-get remove docker-compose

# curl
sudo rm /usr/local/bin/docker-compose

# pip
pip uninstall docker-compose

3. 새로운 버전 설치 

#최신 버전 저장
VERSION=$(curl --silent https://api.github.com/repos/docker/compose/releases/latest | grep -Po '"tag_name": "\K.*\d')
#설치 경로 지정
DESTINATION=/usr/local/bin/docker-compose
# 설치
sudo curl -L https://github.com/docker/compose/releases/download/${VERSION}/docker-compose-$(uname -s)-$(uname -m) -o $DESTINATION
# 설치 경로의 권한 설정
sudo chmod 755 $DESTINATION
# 버전 확인 
docker-compose -v

'Docker' 카테고리의 다른 글

[Docker]Env를 활용해서 컨테이너 외부에서 값을 받아보자!  (2) 2023.10.31
[Docker]Volumes vs Bind Mounts  (0) 2023.10.25
[Grafana]Ubuntu 20.04 에서 Grafana를 docker CLI 에서 실행  (0) 2023.10.23
  • 0. 발생 
  • 1. 원인
  • 2. 구 버전 제거
  • 3. 새로운 버전 설치 
'Docker' 카테고리의 다른 글
  • [Docker]Env를 활용해서 컨테이너 외부에서 값을 받아보자!
  • [Docker]Volumes vs Bind Mounts
  • [Grafana]Ubuntu 20.04 에서 Grafana를 docker CLI 에서 실행
easysheep
easysheep
easysheep
나의 개발자 일기
easysheep
전체
오늘
어제
  • 분류 전체보기 (95)
    • 파이썬 (7)
      • 자료형 (0)
      • matplotlib (2)
      • Tensorflow (1)
      • Selenium (1)
      • Numpy (2)
      • Pandas (1)
    • 장난감 프로젝트 (3)
    • AI_수학 (0)
      • 통계 (0)
    • 알고리즘 (63)
      • 브루트 포스 (3)
      • 그리드 알고리즘 (5)
      • 너비 우선 탐색(bfs) (12)
      • 깊이 우선 탐색(DFS) (1)
      • 최단 경로 구하기(플로이드 워셜) (1)
      • 동적 계획법(Dynamic Programming) (8)
      • Dijkstra algorithm(데이크스트라 알.. (6)
    • Backend (1)
      • Django (1)
    • 딥러닝 (1)
      • Regression(회귀) (0)
    • 머신러닝 (3)
      • Daycon (1)
      • 직접 구현 (1)
    • AWS (3)
    • DB (2)
      • MongoDB (2)
    • kubernetes (3)
    • Docker (4)
    • Stress Test Toll (0)
      • Jmeter (0)
      • nGrinder (0)
    • Ubuntu (3)

블로그 메뉴

  • 홈
  • 태그
  • 방명록

공지사항

인기 글

태그

  • Cannot stat file /proc/528/fd/0: Permission denied
  • Numpy
  • Docker
  • matplotlib
  • 백준
  • mysql
  • 헬름 설치
  • error: version in "./docker-compose.yaml" is unsupported.
  • BFS
  • ubuntu
  • 문자열
  • 파이썬
  • Bind Mounts
  • 2*n 타일링
  • 머신 러닝
  • gradio
  • dynamic programming
  • error
  • Mac
  • Python
  • 알고리즘
  • validate service connection
  • aws
  • grafana
  • 우분투에 헬름 설치
  • helm
  • heap
  • 데이크스트라
  • ML
  • 너비 우선 탐색

최근 댓글

최근 글

hELLO · Designed By 정상우.
easysheep
[Docker]error: version in "./docker-compose.yaml" 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 `s..
상단으로

티스토리툴바

단축키

내 블로그

내 블로그 - 관리자 홈 전환
Q
Q
새 글 쓰기
W
W

블로그 게시글

글 수정 (권한 있는 경우)
E
E
댓글 영역으로 이동
C
C

모든 영역

이 페이지의 URL 복사
S
S
맨 위로 이동
T
T
티스토리 홈 이동
H
H
단축키 안내
Shift + /
⇧ + /

* 단축키는 한글/영문 대소문자로 이용 가능하며, 티스토리 기본 도메인에서만 동작합니다.