I'm using docker-compose to spin up some containers. Normally I work on Mac but now I switched to Linux.
I'm getting some errors which me and my team don't get on Mac or Windows. These are the errors:
ERROR: The Compose file './docker-compose.yml' is invalid because:
networks.default value Additional properties are not allowed ('name' was unexpected)
Invalid top-level property "x-global". Valid top-level sections for this Compose file are: secrets, version, volumes, services, configs, networks, and extensions starting with "x-".
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
The first one has to do with the following configuration:
The name property works on Mac and Windows, but apparently not on Linux.
So the second one is a bit weird, it says I can't use custom properties without prefixing it with x-, while obviously x-global is prefixed with x-
The docker-compose file is marked as version 3.5
docker: 18.09.7, build 2d0083d
docker-compose: 1.17.1, build unknown
Thanks in advance