# Docker build environments

**URL:** <https://travis-ci.community/t/docker-build-environments/7216>\
**Category:** Linux\
**Tags:** docker\
**Created:** [February 12, 2020, 9:10pm UTC](https://travis-ci.community/t/docker-build-environments/7216 "2020-02-12T21:10:10Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![native-api](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/native-api/32/430_2.png) [@native-api](https://travis-ci.community/u/native-api)\
**Post date:** [February 12, 2020, 11:46pm UTC](https://travis-ci.community/t/docker-build-environments/7216/3 "2020-02-12T23:46:40Z")

</div>

`-w "$TRAVIS_BUILD_DIR" -v "$TRAVIS_BUILD_DIR:$TRAVIS_BUILD_DIR"` also seems suspicious. You are mounting stuff under `/home`, but it’s not your homedir (in a container, you are usually `root`) and doesn’t have the usual stuff – this may break software’s assumptions.  
Better mount it somewhere neutral – e.g. under `/root` or `/mnt` (the Multibuild project uses `/io`).

Then, there is [an error on installation step](https://travis-ci.org/ondratu/m-bitbeam/jobs/649376832#L2287) that you might have overlooked.

---

_[View the full topic](https://travis-ci.community/t/docker-build-environments/7216)._
