question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Version in docker-compose.yml is unsupported

See original GitHub issue

When following the quick-start guide, at step ./docker/quickstart.sh I get:

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 theserviceskey, or omit theversionkey 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/

The compose files are 3.8, so I upgraded my docker to 19.03.13 to ensure compatibility. This didn’t work.

Possible resulution: Downgrade docker-compose.yml and docker-compose.override.yml to 3.7, this worked for me (so far).

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

129reactions
th0gercommented, Dec 1, 2020

The issue was caused by too low version of docker-compose = 1.25.0, which is unfortunately the highest version Ubuntu supports on any of their current releases, including focal (20.04LTS), groovy (20.10) and hirsute.

For reference if anyone needs it: I’m on focal (20.04LTS) with docker-ce installed from deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable and docker-compose installed from Ubuntu universe.

$ dpkg -l | grep ii | grep docker
ii  docker-ce                                                   5:19.03.13~3-0~ubuntu-focal
ii  docker-ce-cli                                               5:19.03.13~3-0~ubuntu-focal
ii  docker-compose                                              1.25.0-1

Upgraded docker-compose the official docker/non-Debian-way:

$ sudo curl -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
$ sudo chmod +x /usr/local/bin/docker-compose
$ which docker-compose
/usr/local/bin/docker-compose
$ docker-compose -v
docker-compose version 1.27.4, build 40524192

Note that /usr/bin/docker-compose is still the old version.

8reactions
th0gercommented, Dec 1, 2020

@jplaisted I think you are right, here’s a minimal example docker.compose.yml:

version: '3.8'
services:
  zookeeper:
    image: confluentinc/cp-zookeeper:5.4.0
    environment:
      ZOOKEEPER_CLIENT_PORT: 2181
      ZOOKEEPER_TICK_TIME: 2000
$ docker-compose up
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/

version: 3.7 works.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ask Question - Stack Overflow
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 ......
Read more >
Version in docker-compose.yml is unsupported #2020 - GitHub
The compose files are 3.8 , so I upgraded my docker to 19.03.13 to ensure compatibility. This didn't work. Possible resulution: Downgrade docker...
Read more >
To run 3.9 version on ubuntu VM - Docker Community Forums
Version in “./docker-compose.yml” is unsupported. You might be seeing this error because you're using the wrong Compose file version.
Read more >
Resolve Docker's 'Version in docker-compose.yml is ...
Solution · Upgrade the Docker engine too. · Try to downgrade. Specify an older docker-compose file version. For instance, if you are still...
Read more >
Rails Long Term Support - makandra cards
You can fix this issue by upgrading docker-compose Archive to the newest version (just download the new script from the install section). Make ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found