Skip to content

build fails on component non-zero exit code when docker build does not #1554

Description

@timfallmk

Running docker-compose build --no-cache will fail if one of the Dockerfile commands returns a non-zero exit code. However running docker build --no-cache will return successfully in the same condition.

Example:
Dockerfile has command RUN npm install libxmljs:

npm will return code 137 (a warning) from this command

docker-compose will exit at this stage while docker does not.

I can provide more details of the builds if necessary.

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