Skip to content

docs(libnetwork): broken image link in design.md for Container Network Model diagram #53789

Closed

Description

@auroraxo

Description

In daemon/libnetwork/docs/design.md, the Container Network Model diagram uses a root-relative path that resolves to nowhere at the repository root, while the image itself lives in the same directory alongside the document:

Line 19:

![](/docs/cnm-model.jpg?raw=true)
  • Target requested by the root-relative path: docs/cnm-model.jpg → HTTP 404 (does not exist)
  • Actual location of the image file: daemon/libnetwork/docs/cnm-model.jpg → HTTP 200 (exists in the same folder as design.md)

When viewing design.md on GitHub, the CNM diagram in the "The Container Network Model" section renders as a broken image.

Steps to reproduce

  1. Open https://github.com/moby/moby/blob/master/daemon/libnetwork/docs/design.md#the-container-network-model
  2. Observe the broken image directly below the section heading.
  3. Observe raw URLs:
    • curl -I https://raw.githubusercontent.com/moby/moby/master/docs/cnm-model.jpg -> 404
    • curl -I https://raw.githubusercontent.com/moby/moby/master/daemon/libnetwork/docs/cnm-model.jpg -> 200

Suggested fix

Change the image reference on line 19 of daemon/libnetwork/docs/design.md from /docs/cnm-model.jpg?raw=true to the local relative path:

![](cnm-model.jpg)

(The file cnm-model.jpg is in the same directory.)

Additional context

Found during a systematic documentation-rot audit of open source repositories (https://codebyaurora.com/docrot/).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions