Compose: Support build --network

Created on 23 Mar 2017  路  4Comments  路  Source: docker/compose

docker build supports --network option (note, this is different from docker run's --net option).

Request extending docker-compose yaml spec to include the following:

build:
  context: .
  network: host

Thanks.

arebuild kinfeature kinparity

Most helpful comment

Duplicate of #4095

All 4 comments

This is a really useful feature. Specially for Ruby environments. With this option one can use Gemstash to cache the gems.

Duplicate of #4095

This is a really useful feature. Specially for Ruby environments. With this option one can use Gemstash to cache the gems.

Also for "RUN npm install --registry http://my-private-registry-inside-network" instruction with private npm registry.

+1

I would like this our environment as well. We have some services are that required during the build process, that should be linked to the building containers for abstraction.

Was this page helpful?
0 / 5 - 0 ratings