# WARN: the attribute `version` is obsolete, it will be ignored

**Code:** `the attribute version is obsolete` · **Category:** Docker · **Seen on:** Docker

A harmless Compose v2 warning: the top-level version: line in docker-compose.yml is no longer used.

## Meaning

Compose v2 implements the Compose Specification, which ignores version. Delete the line to silence the warning; nothing else changes.

## Common causes

- docker-compose.yml still starts with version: "3.8" (or similar)
- Old templates/tutorials copied with the version line
- Compose v2 installed where v1 used to run the same file

## Quick fix

1. Delete the version: line
2. Keep using the file — the warning is cosmetic

## Detailed fix by platform

### Docker Compose

1. 

```bash
# remove this line
version: "3.8"
services:
  web:
    image: nginx
```


## How to diagnose

1. **File** — First lines of every compose file in use
2. **Recent change** — Did it start after a deploy, upgrade, or configuration change? Compare with the last working version.

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/docker/compose-version-obsolete)
