Mounting /bitrise/src into a Docker container results in empty directory in container

Bitrise Build Issue Report template

Description of the issue

I’m using the “Do anything with Script step” in a workflow. I am mounting the default working directory (/bitrise/src/) into a Docker container, but the target directory inside the container is always empty.


Android & Docker, on Ubuntu 18.04
Do anything with Script step v11.5


  • Does a “Rebuild” help? (You can trigger a rebuild from the Build’s page, by clicking the “Rebuild” button in the top right corner of a finished build) : NO
  • Does a rebuild without caches help? (You can remove the Cache:Pull and Cache:Push steps temporarily to not to use the cache, or you can delete all the caches on the Settings tab of the app. : 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? : A WEEK AGO

Local reproduction

I can run the exact same command locally without failure.

Build log


| (2) Do anything with Script step                                             |
| id: script                                                                   |
| version: 1.1.5                                                               |
| collection:                |
| toolkit: bash                                                                |
| time: 2018-09-13T20:41:51Z                                                   |
|                                                                              |
+ docker run --tty --volume=/bitrise/src:/usr/local/firebase node:10.5-alpine sh -c 'cd /usr/local/firebase/functions && npm install'
Unable to find image 'node:10.5-alpine' locally
10.5-alpine: Pulling from library/node
ff3a5c916c92: Pulling fs layer
94f111771efe: Pulling fs layer
87fbae1a7501: Pulling fs layer
87fbae1a7501: Verifying Checksum
87fbae1a7501: Download complete
ff3a5c916c92: Verifying Checksum
ff3a5c916c92: Download complete
94f111771efe: Verifying Checksum
94f111771efe: Download complete
ff3a5c916c92: Pull complete
94f111771efe: Pull complete
87fbae1a7501: Pull complete
Digest: sha256:628d6994c7b950fda874dbb3bd04be6e5323c311c5c5e485aebe583c3e25b56f
Status: Downloaded newer image for node:10.5-alpine
sh: cd: line 1: can't cd to /usr/local/firebase/functions
|                                                                              |
| x | Do anything with Script step (exit code: 2)                   | 8.80 sec |
| Issue tracker:             |
| Source:                           |

Hi there,
Thank you for reporting! We are really sorry for the inconvenience caused! Our infra team is working on fixing this and the release should be happening this weekend. In the meantime could you try running your build on the Android & Docker, on Ubuntu 16.04 - LST Stack?

Thanks for the rapid turnaround! Docker volumes work as expected on the LTS stack. We’ll await your fix. Cheers.

Hi @dphipps,
Just wanted to update you on this, the Android & Docker, on Ubuntu 18.04 stacks should also be working correctly. Let me know if you are still seeing any issue! :slightly_smiling_face:


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