You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2021/11/23 19:26:22 UTC

[GitHub] [trafficcontrol] rawlinp commented on pull request #6277: Update Compose file versions to 3.8

rawlinp commented on pull request #6277:
URL: https://github.com/apache/trafficcontrol/pull/6277#issuecomment-977057301


   I can't seem to find the magical docker versions required to use docker-compose files at version 3.8: 
   ```
   $ yum list installed docker*
   docker-ce.x86_64                                                                          3:20.10.8-3.el7                                                           @docker-ce-stable
   docker-ce-cli.x86_64                                                                      1:20.10.8-3.el7                                                           @docker-ce-stable
   docker-ce-rootless-extras.x86_64                                                          20.10.8-3.el7                                                             @docker-ce-stable
   docker-scan-plugin.x86_64                                                                 0.8.0-3.el7                                                               @docker-ce-stable
   
   $ docker-compose version
   docker-compose version 1.29.2, build 5becea4c
   docker-py version: 5.0.0
   CPython version: 3.7.10
   OpenSSL version: OpenSSL 1.1.0l  10 Sep 2019
   
   $ sudo docker version
   Client: Docker Engine - Community
    Version:           20.10.8
    API version:       1.41
    Go version:        go1.16.6
    Git commit:        3967b7d
    Built:             Fri Jul 30 19:55:49 2021
    OS/Arch:           linux/amd64
    Context:           default
    Experimental:      true
   
   Server: Docker Engine - Community
    Engine:
     Version:          20.10.8
     API version:      1.41 (minimum version 1.12)
     Go version:       go1.16.6
     Git commit:       75249d8
     Built:            Fri Jul 30 19:54:13 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
   ```
   These are fairly recent versions, but I still get this error:
   ```
   Version in "././infrastructure/docker/build/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 ("2.0", "2.1", "3.0") 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/
   ```
   The thing is, https://docs.docker.com/compose/compose-file/compose-versioning/ seems to indicate that these versions should be fine.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org