Latest update:
so if I start the docker-android container like
docker run --privileged --env CI=false --volume "$(pwd):/bitrise/src" --volume "/var/run/docker.sock:/var/run/docker.sock" -it --net=host bitriseio/docker-android:latest bash
(notice the --net=host)
…it works. the host ports are accessible to the container.
however, I don’t think I have control over how bitrise.io starts the docker-android container?
Also as i mentioned earlier, this solution, isn’t really desirable in case I need to run concurrent builds.