louislam / dockge

A fancy, easy-to-use and reactive self-hosted docker compose.yaml stack-oriented manager
https://dockge.kuma.pet
MIT License
12.22k stars 353 forks source link

docker compose 'version' is obsolete #505

Closed GerdRuetten closed 5 months ago

GerdRuetten commented 5 months ago

⚠️ Please verify that this bug has NOT been reported before.

🛡️ Security Policy

Description

In the actual docker compose, the 'version' element in the compose.yaml is obsolet and throw a warning.

See: https://github.com/compose-spec/compose-spec/blob/master/spec.md#version-and-name-top-level-elements

👟 Reproduction steps

create a new stack

👀 Expected behavior

compose.yaml without 'version' element

services:
  nginx:
    image: nginx:latest
    restart: unless-stopped
    ports:
      - 8080:80
networks: {}

😓 Actual Behavior

compose.yaml with 'version' element

version: "3.8"
services:
  nginx:
    image: nginx:latest
    restart: unless-stopped
    ports:
      - 8080:80
networks: {}

Dockge Version

1.4.2

💻 Operating System and Arch

linux/amd64

🌐 Browser

not browser specifik

🐋 Docker Version

Docker 26.0.0

🟩 NodeJS Version

No response

📝 Relevant log output

No response