Unable to write files from within a docker container

Bitrise Build Issue Report template

Description of the issue

I have a build in which I need to run a proprietary Windows executable to generate the final build.

Currently I am able to run this step locally inside a Docker using wine.

However, when I attempt to run the same docker and script in a Bitrise build, the build fails as it is unable to write a file in the mounted volume I add.


Where did the issue happen?

Android & Docker, on Ubuntu 16.04.
Docker with pre-cached Android setup, installed on Ubuntu 16.04.

FROM scottyhardy/docker-wine:latest

RUN apt-get update && apt-get install -y zip

WORKDIR /usr/src/app

CMD ["touch test"]

Docker image created as:

docker run \
  --name test \
  -v "$(pwd)"/app:/usr/src/app/ \


  • _Does a “Rebuild” help? No
  • _Does a rebuild without caches help? No
  • Does the issue happen sporadically, or every time? : every time
  • Does upgrading the build Step to the latest version help? : no
  • When did the issue start? : as soon as I set it up

Local reproduction

Locally it succeeds.

Local reproduction: Linux / Android (docker based) stack builds

Locally it succeeds.

Build log

Example output:

+ echo 'Testing write permissions:'
+ mkdir pdr
mkdir: cannot create directory 'pdr': Permission denied

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.