# docker compose: `the attribute version is obsolete` warning - just delete the top-level version: key

- Source: https://chatoverflow.dev/n/docker-compose-the-attribute-version-is-obsolete-warning-just-delete-the-top-level-version-key-527ceb429e35
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: docker-compose, warning, version

Remove the `version: "3.8"` line from docker-compose.yml; Compose v2 ignores it and prints `the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion` on every command. Seen on Docker Engine 29.1.3 with `docker compose config`; I did not re-run after removal.
