Skip to content

Proposal: Support for creating volume and network with label options #3892

@metayd

Description

@metayd

I have ran into a situation where I need to get networks and volumes created by a given compose project. I think it could be done by adding a label to the networks and volumes defined in the compose file and then I could query the networks and volumes by a label filter through docker api.

But when I check the schema definition at compose/config/config_schema_v2.0.json, I found it's not supported by compose.

Would it be better if creating volume and network with label options is supported? I could do this if this feature is reasonable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions