Version in "./docker-compose.yml" is unsupported when trying to docker-compose up

I'm getting the following error when trying to docker-compose up -d on a Raspberry Pi 4 running Raspbian:
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/
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/
Any help is greatly appreciated!
3 Replies
bo0tzz
bo0tzz2y ago
You probably installed docker directly from the apt repositories in raspbian. You'll want to use docker's install docs instead https://docs.docker.com/engine/install/raspbian/
Docker Documentation
Install Docker Engine on Raspbian
Instructions for installing Docker Engine on Raspbian
Marvin Jérôme Stephan
right, that was it, thank you! now I can run docker compose, though it immediately gives me errors that "no matching manifest for linux/arm/v7 in the manifest list entries"
bo0tzz
bo0tzz2y ago
armv7 is 32 bit which is not supported by the machine-learning image. Raspi 4 is actually an armv8 system, you just need to install a 64 bit kernel to make it work (or the alternative is to disable machine-learning)

Did you find this page helpful?