Skip to content

Instantly share code, notes, and snippets.

@juslintek
Created July 3, 2018 21:47
Show Gist options
  • Save juslintek/fe0e5f24caea8a5de7b98e9bc14ba226 to your computer and use it in GitHub Desktop.
Save juslintek/fe0e5f24caea8a5de7b98e9bc14ba226 to your computer and use it in GitHub Desktop.
docker-compose.yml problem

Hi, 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 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/

on

docker -v
Docker version 18.03.1-ce, build 9ee9f40

lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 18.04 LTS
Release:	18.04
Codename:	bionic

docker-compose -v
docker-compose version 1.17.1, build unknown

When i run https://github.com/juslintek/versionpress/blob/master/docker-compose.yml Current docker-composer.yml version is 3.6 Any ideas what to do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment