Comments (11)
Yes that lab does require the use of Windows containers, so you need to switch to Windows containers. That won't require an install if you're up to date on all updates to Windows 10. You also don't need to add anything to the path.
from labs.
Hi @eliassal,
Which lab are you trying to run?
from labs.
Multi-Container Applicationns at
https://github.com/docker/labs/blob/master/windows/windows-containers/MultiContainerApp.md
from labs.
The error you are getting is because you didn't switch to windows containers
from labs.
Ok Mano, I switched to win containers, issued the build command, getting thisthis output
PS E:\Project\MusicStore-master> docker-compose -f .\docker-compose.windows.yml build
db uses an image, skipping
Building web
Step 1/13 : FROM microsoft/dotnet:1.0.0-preview2-windowsservercore-sdk
1.0.0-preview2-windowsservercore-sdk: Pulling from microsoft/dotnet
9c7f9c7d9bc2: Pull complete
bc1fd41b1aa4: Pull complete
72be500ae6da: Pull complete
ece219324a62: Pull complete
1e9785c36e6a: Pull complete
f06a698b860b: Pull complete
340caf8b1001: Pull complete
Digest: sha256:0e1e82755d2ebe26f1fc0a60fd6ea1b758b45b89d8eb3bd78991baedeac4b514
Status: Downloaded newer image for microsoft/dotnet:1.0.0-preview2-windowsservercore-sdk
---> 4154a4c864b6
Step 2/13 : SHELL powershell -Command $ErrorActionPreference = 'Stop';
---> Running in c349873ed98b
---> 92e1a7cc8d48
Removing intermediate container c349873ed98b
Step 3/13 : RUN set-itemproperty -path 'HKLM:\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters' -Name ServerPriorit
yTimeLimit -Value 0 -Type DWord
---> Running in 9ffe00b297cc
ERROR: Service 'web' failed to build: container 9ffe00b297cc8c60b4ff1d9720c02921b0fe78aa6ee32f0b07054b9544659068 encount
ered an error during Start: failure in a Windows system call: The operation timed out because a response was not receive
d from the Virtual Machine hosting the Container. (0xc0370109)
I even tried from a another laptop, getting the exact same error
from labs.
Sorry, the 2nd laptop gives a different error as follows
Step 1/13 : FROM microsoft/dotnet:1.0.0-preview2-windowsservercore-sdk
...............
....
...
Step 6/13 : ADD samples/MusicStore.Standalone/project.json samples/MusicStore.Standalone/project.json
---> Using cache
---> 65ae50f6fb5d
Step 7/13 : ADD NuGet.config .
---> Using cache
---> c84046b134dd
Step 8/13 : RUN dotnet restore --no-cache .\samples\MusicStore.Standalone
---> Running in 47c4a247e602
log : Restoring packages for C:\MusicStore\samples\MusicStore.Standalone\project.json...
error: Unable to load the service index for source https://dotnet.myget.org/F/aspnetcore-ci-dev/api/v3/index.json.
error: An error occurred while sending the request.
error: The server name or address could not be resolved
ERROR: Service 'web' failed to build: The command 'powershell -Command $ErrorActionPreference = 'Stop'; dotnet restore --no-cache .\samples\MusicStore.Standalone' returned a non-zero
from labs.
Mano, while the error is persi persisting on the physical win 10 laptop which has containers enabled which is
error: The server name or address could not be resolved
The operations succeeded after 5 retries on THE WIN VM with Docker for windows installed and switched to Windows dows Containers.
I should admit that it is a very involved process and took a lot of time for each step.
After issuing the
docker-compose -f .\docker-compose.windows.yml build
for the 5th time, I got rid on the comm error on step 8/13 and reached
Successfully built 799de69bb202
Then I issued
docker-compose -f .\docker-compose.windows.yml up
started to get the following
Pulling db (microsoft/mssql-server-2016-express-windows:latest)...
latest: Pulling from microsoft/mssql-server-2016-express-windows
9c7f9c7d9bc2: Already exists
a668155b2edd: Pull complete
d89b36696f4d: Pull complete
4810d30c603d: Pull complete
f2b8cca22ada: Pull complete
35f6d8a76ceb: Pull complete
285c50e9b90d: Pull complete
efc96f8c3401: Pull complete
ba0f226ef4d6: Pull complete
27c44fc2dd7e: Pull complete
Digest: sha256:347a81dbbe19bf2ee5fcd3ba521a947bbffe9af8bdcbe4f3521aecfb305cc9bc
Status: Downloaded newer image for microsoft/mssql-server-2016-express-windows:latest
Creating musicstoremaster_db_1
ERROR: for db HTTPConnectionPool(host='127.0.0.1', port=2375): Read timed out. (read timeout=60)
ERROR: An HTTP request took too long to complete. Retry with --verbose to obtain debug information.
If you encounter this issue regularly because of slow network conditions, consider setting COMPOSE_HTTP_TIMEOUT to a hig
her value (current value: 60).
again so many tries and setting COMPOSE_HTTP_TIMEOUT = 180, the up process went through and I was able to browse the store website from another machine using http://hostIP:5000 but not from the host itself (not able to understand why as firwall is disabled on the host win 10 running windows container).
I appreciate your efforts and help but I think all this should be optimized and get more robust. I work with docker on Linux since almost 1, spinning a new container never crossed 15 to 20 minutes whereas for running this lab it took me more that 8 hours and used 2 different hosts. Just before clicking on the post button, I retried
docker-compose -f .\docker-compose.windows.yml build
on the win10 physical laptop
no way, exact same error after 5 minutes of wait
from labs.
Also, a huge surprise, I have just checked the directory
C:\ProgramData\Docker\windowsfilter
on the win10 VM, it is 24 GIG !!!!! with a lot of Guid based names directories
35f34a62175c8213b981d84964e5392d338d9f72b16b74088902183479b4ef72
73cff097674dc109928640c97811907b9680edd6401d217e53069f96c1912f62
....
........
how this can be cleaned? and why so many directories for 1 single container?
Thanks for your help
from labs.
@eliassal I'm not able to replicate your problem. Could you submit feedback on Docker for Windows so the team can help you debug the issue?
And yes, the Windows container images are huge. That's a known issue that I believe Microsoft is working on. Using NanoServer helps but they are still large compared to Linux.
from labs.
OK Mano I will do, but what about the error I am getting on the physical laptop , step 8/13
...Step 8/13 : RUN dotnet restore --no-cache .\samples\MusicStore.Standalone
---> Running in 47c4a247e602
log : Restoring packages for C:\MusicStore\samples\MusicStore.Standalone\project.json...
error: Unable to load the service index for source https://dotnet.myget.org/F/aspnetcore-ci-dev/api/v3/index.json.
error: An error occurred while sending the request.
error: The server name or address could not be resolved
```This is Windows container and not Docker for windows
from labs.
Docker for Windows is still the engine so report it there. We work with MS so if there's something one their end we can work it out
from labs.
Related Issues (20)
- New Dockerfile
- Skkien / lab
- FLASK-APP cats images not available ; link not working
- No replicas running in Docker for beginner chapter 3 HOT 2
- Documentation of labs not update to date with content (sql-server part 1)
- dead link in https://github.com/docker/labs/blob/master/windows/windows-containers/README.md
- Do we need to add environment variables to Jenkins?
- The `metrics` url should be fixed
- Dead link to "Docker Tutorials from the Community" HOT 1
- Broken link to 'Install Docker Enterprise Engine on Windows Server' HOT 1
- broken link to youtube in readme HOT 1
- Source code was modified and doesn't match the PWD tutorial
- Docker Engine Service not visible and switch to windows containers is disabled
- guide on windows server HOT 2
- Install Git in Windows 2019 Core HOT 1
- ERROR: filesystem layer verification failed for digest
- Update swarm intro with voting app
- Link Broken HOT 1
- wrong compose syntax
- Running Docker on Windows Server documentation is broken
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 labs.