Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

Problema ao Executar o docker compose.

Realizei o clone do projeto. Mas ao rodar o docker-compose up --build foi retornado o seguinte erro:

alura-ms$ docker-compose up --build 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 versão:

alura-ms$ sudo docker version Client: Docker Engine - Community Version: 20.10.17 API version: 1.41 Go version: go1.17.11 Git commit: 100c701 Built: Mon Jun 6 23:02:57 2022 OS/Arch: linux/amd64 Context: default Experimental: true

Server: Docker Engine - Community Engine: Version: 20.10.17 API version: 1.41 (minimum version 1.12) Go version: go1.17.11 Git commit: a89b842 Built: Mon Jun 6 23:01:03 2022 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.6.6 GitCommit: 10c12954828e7c7c9b6e0ea9b0c02b01407d3ae1 runc: Version: 1.1.2 GitCommit: v1.1.2-0-ga916309 docker-init: Version: 0.19.0 GitCommit: de40ad0

Docker compose:

/alura-ms$ docker-compose -v docker-compose version 1.21.2, build a133471

1 resposta
solução!

Resolução:

Atualizar o docker-compose para versão 2, a versão do docker-composer era uma versão 1.24 se não me engano.