Wednesday, November 13, 2024
Docker

Solusi – ERROR: Version in “./docker-compose.yml” is unsupported

unsupported

“Solusi – ERROR: Version in “./docker-compose.yml” is unsupported”

Daftar Isi

Pengantar

Mungkin anda pernah mengalami problem ketika deploy docker menggunakan docker compose muncul error seperti berikut :

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 theserviceskey, or omit theversionkey 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/

Solusi

$ sudo curl -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
$ sudo chmod +x /usr/local/bin/docker-compose
$ which docker-compose
/usr/local/bin/docker-compose
$ docker-compose -v
docker-compose version 1.27.4, build 40524192

Atau Jika belum solved update keduanya docker dan docker compose

sudo cd /usr/local/bin && sudo rm -rf docker-compose
sudo sudo curl -SL https://github.com/docker/compose/releases/download/v2.1.1/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose
sudo chmod +x docker-compose

Penutup

Sahabat Blog Learning & Doing demikianlah penjelasan mengenai Solusi – ERROR: Version in “./docker-compose.yml” is unsupported. Semoga Bermanfaat . Sampai ketemu lagi di postingan berikut nya.

(Visited 105 times, 1 visits today)
Baca Juga :  Docker prune stuck in "a prune operation is already running"

Similar Posts