Skip to content

"volumes_from: service" fails silently if the service has no containers #455

@dnephin

Description

@dnephin

Example:

foo:
    build: .
    volumes_from:
        - configs

configs:
    build: ./configs
    volumes:
        - /etc/something

If I run

fig run foo

The volume is not mounted, without any warnings. This is because it tries to iterate over the containers for configs, and none exist yet, so it just skips it and continues.

fig up
fig run foo

This works.

I propose that if there is a volumes_from a service, and there are no containers for that services, it should at lease raise a warning, but possibly error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions