Confusing and contradictory information about paths resolving in extend

Offen Anfängerfreundlich
#26,501 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

@Duo-ee arbeitet bereits daran.

Seit 31.10.2026.

  • #26506 von @Duo-ee — offen

Bewertung

Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Anfängerfreundlichkeit
72/100
Issue-Typ
Dokumentation
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
docker-compose
Bereich
documentation

Rechercherichtung

Lies den Block „Important“ und den Abschnitt „Relative paths“ auf der verlinkten Docker Compose-Seite zu extends und prüfe anschließend, welches Verhalten korrekt ist. Aktualisiere die widersprüchlichen Hinweise, damit die Seite durchgehend erklärt, wie Pfade bei der Verwendung von extends aufgelöst werden. Fertig ist die Aufgabe, wenn Leser erkennen können, welche Pfade relativ zur Basis-Compose-Datei sind und wie Pfade im erweiterten Service behandelt werden.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

status/triage
Is this a docs issue?
  • My issue is about the documentation content or website
Type of issue

Information is incorrect

Description

The information in the important block contradicts with what is described in the "Relative paths" section.

"Important" block says:

When you use multiple Compose files, you must make sure all paths in the files are relative to the base Compose file (i.e. the Compose file in your main-project folder). (...)

And the "Relative paths" section describes the behavior as follows:

When using extends with a file attribute which points to another folder, relative paths declared by the service being extended are converted so they still point to the same file when used by the extending service.

This is confusing and is not obvious which information is true.

Location

https://docs.docker.com/compose/how-tos/multiple-compose-files/extends/

Suggestion

Remove either the "important" block or "relative paths" section - leave only the proper information.

Vorherrschende Sprache
Markdown
Sterne
4.7k
Forks
8.5k
Ø Merge
2 T. 9 Std.
Gemergte PRs (30 T.)
126

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus docker/docs

Alle Issues in docker/docs

Ähnliche Issues

Weitere Issues zu Documentation

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.