Tag: windows server 2016

带有Windows容器的GELFlogging驱动程序

我试图得到一个ELK堆栈(弹性search,Logstash和Kibana),并希望得到GELF日志logging驱动程序将事件转发到Logstash,但每当我运行我的容器与指定的驱动程序我得到docker: Error response from daemon: logger: no log driver named 'gelf' is registered. 即使我在1.12.2-cs2-ws-beta 。 有没有办法让Windows Server 2016的这个工作?

OrientDB Studio不在Windows Server 2016的Docker容器中启动

我正在用下面的Dockerfile创build一个OrientDB容器 FROM microsoft/windowsservercore LABEL Description="OrientDB" Vendor="OrientDB" Version="2.2.16" #install java #https://alexandrnikitin.github.io/blog/running-java-inside-windows-container-on-windows-server/ RUN powershell (new-object System.Net.WebClient).Downloadfile('http://javadl.oracle.com/webapps/download/AutoDL?BundleId=210185', 'C:\jre-8u91-windows-x64.exe') RUN powershell start-process -filepath C:\jre-8u91-windows-x64.exe -passthru -wait -argumentlist "/s,INSTALLDIR=c:\Java\jre1.8.0_91,/L,install64.log" RUN del C:\jre-8u91-windows-x64.exe RUN powershell -Command $path = $env:path + ';C:\Java\jre1.8.0_91\bin'; Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\' -Name Path -Value $path RUN powershell -Command \ $progressPreference = 'silentlyContinue' ; \ $ErrorActionPreference = 'Stop'; […]

在Windows容器和Windows Server 2016中安装服务的区别?

我有一个服务应用程序,将使用以下命令在Windows Server 2016 Standard中正确安装: PS C:\Service> c:\\mysvc\\mysvc.exe -install Service installed successfully 如果我在Dockerfile中运行相同的东西,使用: RUN c:\\mysvc\\mysvc.exe -install 我得到以下输出: 命令'cmd / S / C c:\ svc \ mysvc.exe -install'返回非零代码:3221225781 我不确定它为什么会有不同的performance,或者我可以在哪些方面进行检查,以获得有关错误原因的更好的想法。

将D:Drive添加到Windows Server 2016 Docker映像

如何将D:驱动器添加到Microsoft / windowsservercore基础映像? 我的Windows Server 2016服务器有一个D:驱动器。 该服务器是一个AWS实例。 这是与本机的Docker安装,而不是“Docker for Windows”已经有一段时间了。

推\将docker图像拖到Artifactory

我试图把docker图像推到artifactory作为一个CIjenkins工作的一部分。 我有一个artifactory安装与艺术:8080我在Win2016上安装了Docker,并build立了我的dockerfile。 现在我坚持如何推送dockerfile的输出图像。 我试过了: docker标签微软/ windowsservercore艺术:8080 / imageID:最新docker推进艺术:8080 /docker本地:最新 但是我得到一个错误,说:Get https:// art:8080 / v2 / :dial tcp:lookup artifactory:getaddrinfow:没有这样的主机是已知的。 https从哪里来? 我如何推送到我的artifactory正确的本地docker回购?

在Windows server 2016 Docker容器上运行部署在Tomcat上的Java war文件

尝试在Windows server 2016上使用Docker运行Java .war文件。 使用Linux容器,可以通过拉取Tomcat映像( 它build立在openJDK之上,并使用Debian作为基础映像 )并通过Dockerfile将war文件添加到webapps文件夹来完成 。 但是,Tomcat目前没有任何Windows容器的映像,因为openJDK也不支持Microsoft / windowsservercore或Microsoft / nanoserver 在我看来,能够在Tomcat上运行Windows的战争我们需要: windowsservercore JDK:在windowsservercore上安装JRE 使用安装了JDK的Environment Vars进行Tomcat安装。 要创build最终映像,请通过PS下载并安装JDK: Dockerfile看起来像: FROM windowsservercore RUN powershell (new-object System.Net.WebClient).Downloadfile('http://javadl.oracle.com/webapps/download/Au toDL?BundleId=210185', 'C:\jre-8u91-windows-x64.exe') RUN powershell start-process -filepath C:\jre-8u91-windows-x64.exe -passthru -wait -argumentlist "/s,INSTALLDIR=c:\Java\jre1.8.0_91,/L,install64.log" RUN del C:\jre-8u91-windows-x64.exe CMD [ "c:\\Java\\jre1.8.0_91\\bin\\java.exe", "-version"] 但我不知道如何安装Tomcat的环境variables设置,然后添加战争的webapps目录。 听说WinDocks ,但我想build立没有它。 任何人都有这方面的一些见解?

在Windows容器中运行Visual Studio远程debugging器(托pipe的Docker)

我尝试在Windows Server 2016 TP4的Windows容器中运行Visual Studio远程debugging器 。 由于它在容器中运行,因此不存在用户界面。 我尝试通过以下方式运行远程debugging器: .\msvsmon.exe /nostatus /silent /nosecuritywarn /nofirewallwarn /noclrwarn /port 4020 我正在以pipe理员用户(NT权限\系统)执行上述操作。 这在主机上工作正常,但在容器内不起作用。 Windows事件日志显示以下错误事件。 Msvsmon was unable to start a server named "`6D2D071453C5:4020`". The following error occurred: The parameter is incorrect. 完整的事件日志: Get-EventLog -LogName Application -EntryType Error | format-list Index : 1718 EntryType : Error InstanceId : 3221226473 Message : […]

通过GUI访问Windows 2016服务器容器(Docker容器)?

我需要在Windows 2016服务器上使用Docker / Windows容器,并准备Windows应用程序来运行它。 通过PowershellconfigurationWindows并不像在Ubuntu上那样方便,特别是如果你从来没有真正使用过Windows Server并且需要学习所有的Powershell命令;) 有没有办法通过GUI访问Windows容器? Docker,Ubuntu,VNC是可能的: 你可以在Docker 容器中运行GUI应用吗? 想知道是否可以为Windows容器做类似的事情? (我正在工作的前提下,不使用Azure。find一个类似但没有答案的问题在这里: https : //stackoverflow.com/questions/32721422/windows-server-containers-azure-how-to-create-a-container-与gui ) 谢谢。 ==更新== RDP绝对不是一个2016年2月的select – 不知道他们是否打算在最终版本中支持它?! https://msdn.microsoft.com/en-us/virtualization/windowscontainers/about/work_in_progress#remote-desktop Remote Desktop Windows Containers cannot be managed/interacted with through a RDP session in TP4. 到目前为止,我通过使用午夜指挥官 ,至less有一个体面的文件资源pipe理器,但仍然在Windows上的命令行没有多less乐趣。

如何访问Docker容器的Windows事件日志

如何从主机访问Microsoft Docker容器的Windows事件日志? 我在Windows Server 2016下有一个docker容器。 容器基于image:microsoft / iis 我可以得到容器的IP地址: docker inspect -f "{{ .NetworkSettings.Networks.nat.IPAddress }}" my-running-site 我怎样才能通过Windows主机上的事件查看器连接到它?

Windows Server 2016上的Linux Docker容器

在Windows Server 2016上运行Linux Docker容器的方式是什么? 使用Windows的Docker很容易在Windows 10中完成。是唯一的方法来安装Docker Toolbox并忽略内置的容器function?