Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.
This repository was archived by the owner on Nov 24, 2025. It is now read-only.

Version in "././infrastructure/docker/build/docker-compose.yml" is unsupported #8055

Closed

Description

@zrhoffman

This Bug Report affects these Traffic Control components:

  • Traffic Control Cache Config (t3c, formerly ORT)
  • Traffic Control Health Client (t3c-health-client)
  • Traffic Monitor
  • Traffic Ops
  • Traffic Portal
  • Documentation
  • CDN in a Box
  • Automation

What did you do?

./pkg -v cache-config_build

What did you expect to happen?

cache-config successfully builds.

What actually happened?

+ ./pkg -v cache-config_build
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/
Building cache-config_build.
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/
Failed to build cache-config_build.

Reason:
The version key in docker-compose.yml has been deprecated for awhile now, but now using it with compose file version 3.8 is explicitly an error. The version key should be removed completely. And, to ensure that only recent docker compose versions are used, which ensures that they will support this change, instances of docker-compose should be changed to docker compose.

If an old docker-compose version is used with the version key removed from the compose file, it will complain about unknown keys in the compose file, because it will assume that compose file version 1 is used.

Activity

  1. added
    bugsomething isn't working as intended
    on Aug 7, 2024
  2. Solarisbf commented on Aug 12, 2024

    @Solarisbf

    which version of docker-compose ?

    I solved to this problem by using old docker-compose version.

    i am using docker-compose version 1.28.2

    new version command is changed like this docker compose .... does not work on cdn-in-a-box

  3. added
    Traffic Opsrelated to Traffic Ops
    Traffic Portal v1related to Traffic Portal version 1
    cdn-in-a-boxrelated to the Docker-based CDN-in-a-Box system
    buildrelated to the build process
    databaserelating to setup/installation/structure of the Traffic Ops database
    automationrelated to automated testing/deployment/packaging etc.
    dev-ciabRelated to CDN in a Box for Developers
    on Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Traffic Monitorrelated to Traffic MonitorTraffic Opsrelated to Traffic OpsTraffic Portal v1related to Traffic Portal version 1automationrelated to automated testing/deployment/packaging etc.bugsomething isn't working as intendedbuildrelated to the build processcache-configCache config generationcdn-in-a-boxrelated to the Docker-based CDN-in-a-Box systemdatabaserelating to setup/installation/structure of the Traffic Ops databasedev-ciabRelated to CDN in a Box for Developersdocumentationrelated to documentationtc-health-clientTraffic Control Health Client

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions