Skip to content

Permission denied on /dev/stderr #6880

@pditommaso

Description

@pditommaso

The following Docker run command returns the showed error message:

docker run -u $(id -u) -v $PWD:$PWD -w $PWD ubuntu sh -c 'echo Hola > /dev/stderr'  
sh: 1: cannot create /dev/stderr: Permission denied

Removing the -u command option it works fine.

This issue make impossible to run that apps that use the /dev/stderr output stream to report warning messages or other info.

Metadata

Metadata

Assignees

No one assigned

    Labels

    exp/expertkind/bugBugs are bugs. The cause may or may not be known at triage time so debugging may be needed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions