Skip to content

[Enhancement]: Improve container conflict detection compatibility #3569

@Desuuuu

Description

@Desuuuu

Proposal

The container conflict detection used when creating the reaper container or re-using a container is based on the following regex:

regexp.MustCompile("Conflict. The container name .* is already in use by container .*")

This is incompatible with Podman which outputs the following as part of the error:

creating container storage: the container name "reaper_26b1150e0c8a8c3d573ac1bbbdc037b514cb767dcc8d7216abf682ed16d5adfd" is already in use by 87d730cdfb5697a8b5379554ec47aa84ebb0003c2589e4f51bab8473a54092e6.

This is referenced in their test suite.

Considering the similarity between the two messages, it would be nice to slightly alter that regex for improved compatibility.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions