Skip to content

WORKDIR relativepath - succeeds, but uses it as though it has a leading / #3937

@SvenDowideit

Description

@SvenDowideit

RUN mkdir one WORKDIR /one RUN mkdir two WORKDIR two

results in the creation of /one/two and /two, and WORKDIR is set to /two

this is going to trip someone that does check carefully, and would probably be better to either error out and demand an absolute path, or to make WORKDIR respect WORKDIR as a relative path.

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