Windows服务器2016上的Docker如何切换到linux容器 [英] Docker on Windows server 2016 how to switch to linux container

查看:940
本文介绍了Windows服务器2016上的Docker如何切换到linux容器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我在Windows Server 2016上安装了docker。



如下所述:  https: //store.docker.com/editions/enterprise/docker-ee-server-windows?tab=description

  Install-Module -Name DockerMsftProvider -Force 
Install-Package -Name docker -ProviderName DockerMsftProvider -Force
Restart-Computer -Force



现在容器默认运行为windows容器,但我想让它运行linux容器。


< p style ="padding-right:0px;字体大小:15像素;明确:两者;颜色:#242729; font-family:Arial,'Helvetica Neue',Helvetica,sans-serif">
在我的台式机上我有一个托盘图标,我可以在这里切换它。但是在服务器上没有一个



那么我需要做些什么来改进linux容器或如何获取托盘图标?




解决方案

 &'C:\Program Files\Docker \ Docker\DockerCli.exe'-SwitchDaemon  

I我认为会这样做。



见这里:


https://stefanscherer.github。 IO /运行Linux的和 - 窗口的容器上 - 窗口10 /


I Installed docker on Windows Server 2016.

like described here: https://store.docker.com/editions/enterprise/docker-ee-server-windows?tab=description

Install-Module -Name DockerMsftProvider -Force
Install-Package -Name docker -ProviderName DockerMsftProvider -Force
Restart-Computer -Force

Now the container runs per default as windows container but i want to have it running linux container.

On My desktop machine I've a tray icon where i can switch this. but on there server there isn't one

So what do i have to do tochange to linux container or how to get the tray icon?


解决方案

& 'C:\Program Files\Docker\Docker\DockerCli.exe' -SwitchDaemon

I think that will do it.

See here:

https://stefanscherer.github.io/run-linux-and-windows-containers-on-windows-10/


这篇关于Windows服务器2016上的Docker如何切换到linux容器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆