You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Usecase
Create custom docker image with reverse proxy(e.g caddy) on port 8080 using dockurr/windows as a base image to forward traffic to noVNC client running on 8006.
Sample Dockerfile
FROM dockurr/windows:latest
WORKDIR /
# Set environment variables
ENV VERSION="win11"
ENV CADDY_VERSION=2.7.6
# Download and install Caddy
RUN curl -L https://github.com/caddyserver/caddy/releases/download/v"$CADDY_VERSION"/caddy_"$CADDY_VERSION"_linux_amd64.tar.gz -o caddy_"$CADDY_VERSION"_linux_amd64.tar.gz && \
mkdir caddy-download-"$CADDY_VERSION" && tar -xvf caddy_"$CADDY_VERSION"_linux_amd64.tar.gz -C ./caddy-download-"$CADDY_VERSION" && \
mv ./caddy-download-"$CADDY_VERSION"/caddy /usr/local/bin/
# Copy files
COPY Caddyfile /Caddyfile
COPY entrypoint.sh /entrypoint.sh
# Ensure entrypoint.sh is executable
RUN chmod +x /entrypoint.sh
EXPOSE 8006 3389 5900 8080
# Set the entrypoint
ENTRYPOINT [ "/entrypoint.sh" ]
** Entrypoint.sh**
`#!/bin/sh
# Start Caddy server to reverse-proxy noVNC to port 8080
caddy start -c /Caddyfile --pidfile /var/caddy.pid
`
** Caddyfile**
`:8080
route * {
reverse_proxy 127.0.0.1:8006
}
`
Command Used to Build Docker Image docker build -t windows-vnc-vm . && docker run -p 8006:8006 -p 5900:5900 -p 8080:8080 --device=/dev/kvm --device=/dev/net/tun --cap-add NET_ADMIN --stop-timeout 120 windows-vnc-vm
Expected Result
Once windows VM is up and running, we should be able to connect to VM using webclient (no-vnc) on port 8080
Current Result
Once VM is downloaded and started but its not able to run on 8080 , its only running on 8006.
Docker compose
NA
Docker log
NA
Screenshots (optional)
No response
The text was updated successfully, but these errors were encountered:
Operating system
docker desktop (linux container)
Description
Usecase
Create custom docker image with reverse proxy(e.g caddy) on port 8080 using dockurr/windows as a base image to forward traffic to noVNC client running on 8006.
Sample Dockerfile
** Entrypoint.sh**
** Caddyfile**
Command Used to Build Docker Image
docker build -t windows-vnc-vm . && docker run -p 8006:8006 -p 5900:5900 -p 8080:8080 --device=/dev/kvm --device=/dev/net/tun --cap-add NET_ADMIN --stop-timeout 120 windows-vnc-vm
Expected Result
Once windows VM is up and running, we should be able to connect to VM using webclient (no-vnc) on port 8080
Current Result
Once VM is downloaded and started but its not able to run on 8080 , its only running on 8006.
Docker compose
NA
Docker log
NA
Screenshots (optional)
No response
The text was updated successfully, but these errors were encountered: