Skip to content

Support build --network #4665

Closed
Closed

Description

@cjbottaro

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.

Activity

  1. czerasz commented on Apr 20, 2017

    @czerasz

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

  2. ColinHebert commented on May 1, 2017

    @ColinHebert

    Duplicate of #4095

  3. gustavosbarreto commented on May 20, 2017

    @gustavosbarreto

    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

  4. eyz commented on Jun 8, 2017

    @eyz

    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.

  5. added this to the 1.15.0 milestone on Jul 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions