You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Debian 11 here is the message after run docker-compose -d
$ docker-compose up -d
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/
But as it said changing version: '3.8' -> '3.3'
will solve it.
Hi @esmaeelE
You must use latest version of docker and docker compoes to run this compose file.
please update your docker version and use docker compose up -d instead of docker-compose up -d
for more information see this
Thanks in advance @MaxianEdison, I know it can be done but as updating a single package in stable Debian especially from non-official repository not recommend and not a choice for me.
One option is to check distribution release and then change $ version variable but it can be complicated for other type of OSes.
Maybe adding a comment to README.md file expressing something like this is better.
If you are running Debian stable please set version number to '3.3' in docker-compose.yml file.
version: '3.3'
Reacted by Maximilian Edison and Seyyed Ali Mohammadiyeh (Max Base)
Activity
MaxianEdison commentedon Jan 17, 2023
Hi @esmaeelE
You must use latest version of docker and docker compoes to run this compose file.
please update your docker version and use
docker compose up -dinstead ofdocker-compose up -dfor more information see this
esmaeelE commentedon Jan 20, 2023
Thanks in advance @MaxianEdison, I know it can be done but as updating a single package in stable Debian especially from non-official repository not recommend and not a choice for me.
One option is to check distribution release and then change
$ versionvariable but it can be complicated for other type of OSes.Maybe adding a comment to
README.mdfile expressing something like this is better.If you are running Debian stable please set version number to
'3.3'indocker-compose.ymlfile.version: '3.3'esmaeelE commentedon Jan 5, 2025
As version top-level property is obsolete in docker compose 25.05 so this issue neither relevant.