Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker-compose: version is obsolete #20658

Closed
jhdxr opened this issue Jun 25, 2024 · 0 comments · Fixed by #20659
Closed

docker-compose: version is obsolete #20658

jhdxr opened this issue Jun 25, 2024 · 0 comments · Fixed by #20659

Comments

@jhdxr
Copy link
Contributor

jhdxr commented Jun 25, 2024

Expected behavior and actual behavior:
Harbor using docker-compose generate following warning message with latest docker:

WARN[0000] /home/app/harbor/docker-compose.yml: `version` is obsolete

The top level version is now obsolete. see https://docs.docker.com/compose/compose-file/04-version-and-name/#version-top-level-element-optional

Steps to reproduce the problem:
executing any docker compose command: e.g. docker compose up

Versions:
Please specify the versions of following systems.

  • harbor version: v2.11.0-70255684 (but irrelevent actually)
  • docker engine version: 26.1.3
  • docker-compose version: 2.27.0

Additional context:

  • Harbor config files: You can get them by packaging harbor.yml and files in the same directory, including subdirectory.
  • Log files: You can get them by package the /var/log/harbor/ .
kunal-511 pushed a commit to kunal-511/harbor_local that referenced this issue Aug 22, 2024
…rbor#20659)

fix `version` is obsolete warning

Signed-off-by: 蝦米 <me@jhdxr.com>
Co-authored-by: Wang Yan <wangyan@vmware.com>
Co-authored-by: MinerYang <yminer@vmware.com>
Signed-off-by: kunal-511 <yoyokvunal@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant