Comments (1)
I encountered this issue and resolved it by creating a new traefik docker image based on the ltsc2022 Windows Server Core base OS image.
Docker Environment docker -version
:
Client:
Cloud integration: v1.0.20
Version: 20.10.10
API version: 1.41
Go version: go1.16.9
Git commit: b485636
Built: Mon Oct 25 07:47:53 2021
OS/Arch: windows/amd64
Context: default
Experimental: true
Server: Docker Engine - Community
Engine:
Version: 20.10.10
API version: 1.41 (minimum version 1.24)
Go version: go1.16.9
Git commit: e2f740d
Built: Mon Oct 25 07:43:13 2021
OS/Arch: windows/amd64
Experimental: false
Host Environment ver
:
Microsoft Windows [Version 10.0.22000.1098]
Steps to setup reverse proxy:
- Create the Dockerfile below that contains the updated base OS image,
mcr.microsoft.com/windows/servercore:ltsc2022
. Unmodified Dockerfile was retrieved from here.
FROM mcr.microsoft.com/windows/servercore:ltsc2022
COPY --from=traefik:v1.7.8-nanoserver-sac2016 /traefik.exe /traefik.exe
EXPOSE 80
ENTRYPOINT ["/traefik"]
# Metadata (copied from official Traefik image)
LABEL org.label-schema.vendor="Containous" \
org.label-schema.url="https://traefik.io" \
org.label-schema.name="Traefik" \
org.label-schema.description="A modern reverse-proxy" \
org.label-schema.version="v1.7.8" \
org.label-schema.docker.schema-version="1.0"
- Build the image using the directory containing the Dockerfile as the context for the build.
docker build . -t ch05-nerd-dinner-reverse-proxy:2e
- Run the container using the new image and the --isolation=process flag.
docker container run -d -p 80:80 -p 8080:8080 `
--name reverse-proxy `
-v \\.\pipe\docker_engine:\\.\pipe\docker_engine `
--isolation=process `
ch05-nerd-dinner-reverse-proxy:2e `
--api --docker --docker.endpoint=npipe:////./pipe/docker_engine --logLevel=DEBUG
from docker-on-windows.
Related Issues (14)
- Secrets on Windows HOT 4
- Traefik using named pipes in swarm mode HOT 1
- CH03 - iis-healthcheck
- CH03 - nerd-dinner-web HOT 2
- CH03 - Manifest Unknown HOT 1
- How do you reboot a Windows Container? HOT 1
- Can you provide an example of using complus application in Docker on Windows?
- Linux container on windows server 2019 HOT 2
- System can not find path
- Running docker build on ch03-iis-healthcheck results in build failure at step 6/16 HOT 3
- nuget restore fail ,how to fix HOT 1
- Docker-19-03-1.zip does not exist HOT 1
- G drive solution not work for nodejs inside mount volume in windows container
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 docker-on-windows.