Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rerunning compose on Windows errs that network needs to be recreated #4818

Closed
heaths opened this issue May 12, 2017 · 2 comments
Closed

Rerunning compose on Windows errs that network needs to be recreated #4818

heaths opened this issue May 12, 2017 · 2 comments

Comments

@heaths
Copy link

heaths commented May 12, 2017

On Windows with docker-compose 1.11.2 and docker 17.03.1-ce, when I rerun a service (e.g. docker-compose run or docker-compose up I get an error that the network needs to be recreated because options had changed instead of the container (and I made no changes to the docker-compose.yml) joining the network. My compose file looks like:

# Copyright (C) Microsoft Corporation. All rights reserved.
# Licensed under the MIT license. See LICENSE.txt in the project root for license information.

version: '2.1'
services:
  test:
    build: .
    volumes:
      - "${OUTDIR:-../../src/VSSetup.PowerShell/bin/Debug}:C:\\Users\\ContainerAdministrator\\Documents\\WindowsPowerShell\\Modules\\VSSetup:ro"
      - ../Instances:C:\ProgramData\Microsoft\VisualStudio\Packages\_Instances:ro
      - ../Tests:C:\Tests
      - C:\VS\Community
      - C:\VS\Professional
      - C:\VS\Enterprise
      - C:\BuildTools
    networks:
      - external
networks:
  external:
    driver: transparent
@heaths
Copy link
Author

heaths commented May 12, 2017

FWIW, I found that just using network_mode: transparent in my compose file works around the issue by not creating a network in the first place, but given the documentation I would expect this to work.

@shin-
Copy link

shin- commented May 12, 2017

I believe this is fixed by #4794

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants