Skip to content

Inconsistency of volume deletion between 'docker run -rm' and 'docker rm' #4356

@ewindisch

Description

@ewindisch

When using 'docker run -rm', volumes are deleted (v=1 in the DELETE request).

However, when running 'docker rm', volumes are not deleted by default, as matches the remote API behavior.

Especially as it is now default, I see the necessity of 'docker run -rm' deleting volumes by default. However, this behavior is not well-documented and inconsistent with 'docker rm'.

It may be necessary to change the default of 'docker rm', or simply improve the documentation as to highlight the behavioral differences.

Metadata

Metadata

Assignees

No one assigned

    Labels

    exp/beginnerkind/enhancementEnhancements are not bugs or new features but can improve usability or performance.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions