Skip to content

[BUG] Warning: "volume [volume name] already exists but was not created by Docker Compose. Use external: true to use an existing volume" #9969

Description

@Magnum5234

Description

Lets say you create a volume by hand for a good reason - like restore files from a backup or maybe you moved the environment to a different machine. Now you startup you docker compose environment you get the warning above all the time.
The only way to remove the warning (that I know of) is to remove the volume again and create it with the labels docker compose would set.

Warning is overall unnecessary and should be removed.

Steps To Reproduce

  1. create a docker volume with the compose project name + "_" + volume name
  2. start up the docker compose environment
  3. observer warning

Compose Version

Docker Compose version v2.10.2

Docker Environment

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions