Docker in Ubuntu running Linux/AMD in platform compose

I have a project running fine in MAC and Windows but not on Linux Ubuntu 22.04

The Compose file ‘./docker-compose.yml’ is invalid because:
Unsupported config option for ‘platform’

    platform: "linux/amd64"

And then it says the same for all my services that have linux/amd64 in the platform

the command I’m executing is docker-compose -f docker-compose.yml -f docker-compose-full.yml up

Docker Desktop has an emulator for emulating those platforms. Did you install Docker Desktop on Ubuntu as well? If not, you will need o install the emulator. If I remember correctly, it means the qemu-user-static and the binfmt-support packages.

I have intstalled docker desktop

docker version
Client: Docker Engine - Community
 Version:           26.1.2
 API version:       1.45
 Go version:        go1.21.10
 Git commit:        211e74b
 Built:             Wed May  8 13:59:58 2024
 OS/Arch:           linux/amd64
 Context:           desktop-linux

Server: Docker Desktop 4.30.0 (149282)
  Version:          26.1.1
  API version:      1.45 (minimum version 1.24)
  Go version:       go1.21.9
  Git commit:       ac2de55
  Built:            Tue Apr 30 11:48:28 2024
  OS/Arch:          linux/amd64
  Experimental:     false
  Version:          1.6.31
  GitCommit:        e377cd56a71523140ca6ae87e30244719194a521
  Version:          1.1.12
  GitCommit:        v1.1.12-0-g51d5e94
  Version:          0.19.0
  GitCommit:        de40ad0

Then try docker compose instead of docker-compose which could be Compose v1 if you also installed that or had it already. Compose v1 is discontinued and it required a version number in the compose file to support options that were added later

That was the issue!, thanks!