Skip to content

Docker compose with local spec files - error opening file. #2724

@paul-uz

Description

@paul-uz

When using a docker compose setup to run multiple documents at once, I am getting the following error

prism_1-1  | [10:31:57 PM] › [CLI] ✖  fatal     Error opening file "/Users/me/Documents/Work/api_schemas/spec1.yml" 
prism_1-1  | ENOENT: no such file or directory, open '/Users/me/Documents/Work/api_schemas/spec1.yml'
prism_2-1  | [10:31:57 PM] › [CLI] ✖  fatal     Error opening file "/Users/me/Documents/Work/api_schemas/spec2.yml" 
prism_2-1  | ENOENT: no such file or directory, open '/Users/me/Documents/Work/api_schemas/spec2.yml'

I can run either via the CLI simply with prism mock /Users/me/Documents/Work/api_schemas/spec1.yml for example, with no issues.

The file exists, the path is correct (confirms via using the CLI directly).

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