Giter Site home page Giter Site logo

Comments (1)

cb-hamilton avatar cb-hamilton commented on May 22, 2024

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:

  1. 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"
  1. Build the image using the directory containing the Dockerfile as the context for the build.

docker build . -t ch05-nerd-dinner-reverse-proxy:2e

  1. 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.