我想实现我的梦想,即为我的网络应用程序和容器中的容器配备内部测试它.然后,我可以通过创建一个容器集群来大规模地并行化我的浏览器测试.
是否可以在Windows Server容器中运行Internet Explorer?
谢谢
为了提供Windows Selenium WebDriver Grid,我开始准备可以用作网格节点的Dockerfile。最初的原因是准备可控制Firefox / GeckoDriver版本的映像。在出于同样目的而成功准备Chrome映像的鼓舞下,我开始使用以下Dockerfile:
FROM mcr.microsoft.com/windows/servercore:1809
# Install chocolatey
RUN @"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
RUN choco feature enable -n allowGlobalConfirmation
WORKDIR C:\\tools
# Set driver/browser versions
ARG Selenium_Major_Version="3.141"
ARG Selenium_Version="3.141.59"
ARG GeckoDriver_Version="0.24.0"
ARG Firefox_Version="66.0.3"
# Install Java
RUN choco install jdk8
# Download Selenium
RUN powershell Invoke-WebRequest \
-Uri "https://selenium-release.storage.googleapis.com/$env:Selenium_Major_Version/selenium-server-standalone-$env:Selenium_Version.jar" \
-OutFile ".\\selenium-server-standalone.jar"
# Install Firefox
RUN choco install firefox --version %Firefox_Version%
COPY config.json .
ENTRYPOINT java \
-Dwebdriver.gecko.driver=C:\\tools\\geckodriver.exe …Run Code Online (Sandbox Code Playgroud) firefox server-core webdriver docker windows-server-container
我有一个 Windows Server 容器,我想通过 RDP 进入其桌面环境。看来微软已经在最近的Windows Server Core Containers中关闭了RDP。
我尝试跟进本教程。我可以使用远程桌面应用程序成功登录,但之后没有任何反应。好像没有桌面,或者可能还有其他问题。
我想知道是否有任何官方 Windows Server 映像可以访问其桌面 GUI,或者是否有其他方法可以添加此功能。
我已经与 docker 一起工作了几天,因为我正在尝试 docker 的可能性,最近遇到了一个关于如何在 Docker 容器内的 web 服务器中部署 ASP.NET 核心应用程序的问题。使用 IIS 和 WindowsServerCore 部署 ASP.NET 4.5 应用程序是成功的,但任何人都可以建议如何准确地容器化运行 asp.net 核心应用程序的网络服务器。
附注。我不希望应用程序在调试模式下运行,所以我不想要“dotnet run”答案。我希望将应用程序的构建版本部署在网络服务器中,有关如何部署的任何建议?
我正在尝试构建一个包含自定义计划任务的容器.这是我的dockerfile:
FROM microsoft/windowsservercore
RUN schtasks /create /tn hello /sc daily /st 00:00 /tr "echo hello"
Run Code Online (Sandbox Code Playgroud)
我收到以下错误:
错误:任务XML包含格式不正确或超出范围的值.(43,4):任务:
当连接到正在运行的默认Windows核心容器并运行命令时,我也得到相同的错误.
不用说,该命令在标准的Windows 2016服务器上运行良好.
这似乎是Windows容器中的一个错误,但我没有发现任何已知问题.
欣赏任何可能有助于弄清楚的线索.
scheduled-tasks windows-server docker dockerfile windows-server-container
问题:
我无法将windowsservercore映像安装在docker.
这与此处提出的类似: windowsservercore 容器映像未安装
设置:
macOS Sierra并肩跑进Windows Server 2016 TP5里面。VirtualBoxdocker
采取的步骤:
提前我已经成功运行:
Install-WindowsFeature containers
Enable-WindowsOptionalFeature -Online -FeatureName Containers
Run Code Online (Sandbox Code Playgroud)
然后我跑了:
docker pull microsoft/windowsservercore
这导致下载并显示一条消息'Unknown blob'。我不知道它下载到哪里或者如何处理它'Unknown blob'。
我现在如何确保将其安装为可供使用的windowsservercore映像docker?
我有:
1)重新启动docker并运行,docker images显示存储库中没有安装的映像。
2)将映像文件“WindowsServerCore-10-0-14300-1000.wim”下载到C:\Program Files\docker,其中我还有docker和dockerd可执行文件。
我可以安装这个图像文件吗?如果可以,请问如何?
我刚刚安装了最新的 Windows 10 Pro 20H2。安装 Docker Desktop 并将其切换为 Windows 容器后,它要求我执行以下操作
Enable-WindowsOptionalFeature -Online -FeatureName $("Microsoft-Hyper-V", "Containers") -All
Run Code Online (Sandbox Code Playgroud)
完成后,我的电脑重新启动,一切看起来都很好。然后我将Dockerfile以下内容保存在我的文档下的空目录中。我之前在 CI 系统中成功构建了这个 Dockerfile,但我想在我的机器中构建以加快开发周期。
FROM mcr.microsoft.com/windows/servercore:ltsc2019
RUN powershell -NoLogo -NoProfile -Command \
netsh interface ipv4 show interfaces ; \
netsh interface ipv4 set subinterface 18 mtu=1460 store=persistent ; \
netsh interface ipv4 show interfaces ; \
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) ; \
choco install -y --no-progress git --params "/GitAndUnixToolsOnPath" ; \
choco install -y --no-progress 7zip ; \ …Run Code Online (Sandbox Code Playgroud) docker ×7
dockerfile ×2
asp.net ×1
asp.net-core ×1
firefox ×1
iis ×1
server-core ×1
webdriver ×1
windows ×1