I encountered this issue with one (default) container with a set workingDir, and one pipeline specific container with no set workingDir in the template, but with a WORKDIR set in the Dockerfile used to build it. Making sure both are equal resolved the issue. Detecting mismatching working directories as a potential cause would have helped debugging this issue.