大网数据广告活动
服务器运维问答

How to run Linux Docker Container on Windows Server 2019?

· 52CE 我爱测

There are already very similar Q&A regarding Windows Server 2016, but it remains unclear to me. We have installed Docker Enterprise in version 18.09.6. We did manage to run Linux containers in experimental mode using LCOW. But ex…

问题原文

原帖链接 · Redoute · CC BY-SA 4.0

There are already very similar Q&A regarding Windows Server 2016, but it remains unclear to me.

We have installed Docker Enterprise in version 18.09.6. We did manage to run Linux containers in experimental mode using LCOW. But experimental mode is disencouraged for production. Particularly we don't know if the issues regarding filesystem operations and databases mentioned at the end of https://docs.microsoft.com/en-us/virtualization/windowscontainers/deploy-containers/linux-containers still exist.

So the question is how to run Linux containers in non-experimental mode (using MobyVM). Is this supported at all on Windows Server 2019? Are the answers in Docker Windows Server 2016 switch to linux container still valid?

已采纳解答

原帖链接 · Shubhanshu Rastogi · CC BY-SA 4.0

One could use Docker for CE ie the same installer that works on WIN 10. But remember to use the version 2.1.0.3 instead of the version 2.0.0.3. The previous versions have some issues with Server 2019 and would not work fine.

The only supported way to run linux container on Docker EE is using the Hyper-V isolation method (LCOW) which in itself cumbersome and also there is no official documentation. One could follow the blogs mentioned below to run Linux Container on Windows Server 2019 (Remember the support is experimental and is not recommended for Production environment).

PS:

Windows/Docker are not coming up with a final strategy on how they would support Linux container. The Hyper-V isolation method to run Linux container was an idea proposed long back but still there is no final call on that. Refer to the link

We can use Docker for windows on server 2016 but soon the support for latest Docker version 2.1 will not be available. There has been no concrete documentation from Docker/Windows community about how they would support Linux container. Following the steps mentioned here will just provide Windows container support on Server 2016. Luckily we have a escape with server 2016 and Server 2019 using Docker for Windows Installer (Docker CE) but still its not a full proof solution.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2019-06-10)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。