Comments (9)
@derekssmith We have several compose tests which are run regular and most of them use the service name and they all pass. However, I don't think we have one where we pass the service name as part of the environment.
@friism could you take a look and maybe work with @derekssmith on an simpler repro?
from for-win.
To provide some more information on this. If I manually configure a network, and then provide "extra_hosts" to map the names to the IP addresses. It works.
I added this network configuration:
networks:
internal:
driver: bridge
driver_opts:
com.docker.network.enable_ipv6: "false"
ipam:
driver: default
config:
- subnet: 10.1.1.0/24
gateway: 10.1.1.1
I gave each of my services a manual ipv4_address
. Then uses extra_hosts
like this:
extra_hosts:
- "zoo1:10.1.1.10"
NOTE: I only have to do this on the services that are built by docker-compose. The image services work as expected.
from for-win.
@derekssmith can you post output of docker version
and docker-compose version
please?
As Rolf mentioned, it be great if you could help narrow down the problem with a simpler repro or alternatively provide a repro that I can run with public images and/or a public project.
from for-win.
Here are the versions:
docker version
Client:
Version: 1.12.0
API version: 1.24
Go version: go1.6.3
Git commit: 8eab29e
Built: Thu Jul 28 21:15:28 2016
OS/Arch: windows/amd64
Server:
Version: 1.12.0
API version: 1.24
Go version: go1.6.3
Git commit: 8eab29e
Built: Thu Jul 28 21:15:28 2016
OS/Arch: linux/amd64
docker-compose version
docker-compose version 1.8.0, build d988a55
docker-py version: 1.9.0
CPython version: 2.7.11
OpenSSL version: OpenSSL 1.0.2d 9 Jul 2015
I will see if I can put a simple script together that will recreate the issue.
from for-win.
could you retry with Beta27 which we released today. with recent Beta's there have been a lot of improvements around DNS resolutions.
thanks
from for-win.
I installed Beta27 however I was not able to confirm the fix. Running docker-compose up
sent the build process into an infinite loop, where it kept re-building two of my docker images over and over again.
from for-win.
I just tried again with the 1.12.3 release and it appears to be working. So whatever issue I was having before has been fixed in the latest stable release.
from for-win.
Thanks for getting back. The update had both compose and core engine updates, so maybe one of them did the trick. Glad that it's working for you and I'm closing the issue
from for-win.
Closed issues are locked after 30 days of inactivity.
This helps our team focus on active issues.
If you have found a problem that seems similar to this, please open a new issue.
Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
/lifecycle locked
from for-win.
Related Issues (20)
- Docker Desktop - WSL update failed even after updating wsl from comman line (windows) HOT 6
- win11 installing docke,white page appears HOT 2
- After the update, large-scale disk occupancy HOT 1
- Loading chunk 474 failed. (timeout: app://dd/474.bundle.js)
- My images and containers are gone HOT 2
- Unable to write a txt file using ECHO on command prompt of a nano 2022
- Docker Desktop distro installation failed after upgradation to docker desktop 4.32.0 HOT 12
- Host Networking doesn't fully support full 127.0.0.0/8 range
- After "docker compose up -d", docker can build and create a container but can't run
- Error when starting Docker Desktop: `Ensuring Docker CLI uses the Docker Desktop context`
- Docker Desktop update to 4.32.0: Running wsl distro proxy in Ubuntu-22.04 distro: exit status 1 HOT 25
- Error when starting Docker Desktop: Ensuring Docker CLI uses the Docker Desktop context HOT 1
- Cannot update Docker Desktop for Windows (WSL 2) HOT 2
- Containers-Images hosted in linux are not appearing in windows - Docker desktop
- An unexpected error occurred - "connect ENOENT \\.\pipe\errorReporter" HOT 8
- Docker Desktop - Hyper-V setup error HOT 1
- Switching from linux container to windows container
- Docker does not start HOT 1
- docker randomly fails to properly expose ports
- Error response from daemon: Ports are not available: exposing port TCP 127.0.0.1:5432 -> 0.0.0.0:0: listen tcp 127.0.0.1:5432: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from for-win.