g0t4/course-jenkins-getting-started

Version in "./docker-compose.yml" is unsupported.

SiKing opened this issue · 2 comments

Doing your course on Pluralsight. Love the course, BTW!

Tried running the docker compose version of Jenkins:

mark@linuxmint:compose$ pwd
/home/mark/workspace/github.com/g0t4/course-jenkins-getting-started/dockers/compose
mark@linuxmint:compose$ git status
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean
mark@linuxmint:compose$ git pull
Already up to date.
mark@linuxmint:compose$ ll
total 4.0K
-rw-rw-r-- 1 mark mark 1.2K Dec 15 10:51 docker-compose.yml
mark@linuxmint:compose$ 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/

I thought I had the latest docker installed.

mark@linuxmint:compose$ docker version
Client: Docker Engine - Community
 Version:           20.10.12
 API version:       1.41
 Go version:        go1.16.12
 Git commit:        e91ed57
 Built:             Mon Dec 13 11:45:27 2021
 OS/Arch:           linux/amd64
 Context:           default
 Experimental:      true

Server: Docker Engine - Community
 Engine:
  Version:          20.10.12
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.16.12
  Git commit:       459d0df
  Built:            Mon Dec 13 11:43:36 2021
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.4.12
  GitCommit:        7b11cfaabd73bb80907dd23182b9347b4245eb5d
 runc:
  Version:          1.0.2
  GitCommit:        v1.0.2-0-g52b36a2
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0
mark@linuxmint:compose$ docker-compose version
docker-compose version 1.17.1, build unknown
docker-py version: 2.5.1
CPython version: 2.7.17
OpenSSL version: OpenSSL 1.1.1  11 Sep 2018

What am I missing?

Try to change the version within the docker-compose.yml from 3.8 to 3.7.

Still same error.