如何在OSX上运行Docker Windows容器? [英] How can I run a docker windows container on osx?

查看:131
本文介绍了如何在OSX上运行Docker Windows容器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为Mac运行docker,并希望启动Windows容器.从我看来,这应该可以通过虚拟机进行.但是我不清楚在哪里可以找到如何使它工作的?还是仅适用于linux容器?预先感谢!

docker build nanoserver/
Sending build context to Docker daemon   2.56kB
Step 1/6 : FROM microsoft/nanoserver:10.0.14393.1480
10.0.14393.1480: Pulling from microsoft/nanoserver
bce2fbc256ea: Pulling fs layer 
baa0507b781f: Pulling fs layer 
image operating system "windows" cannot be used on this platform

解决方案

查看此链接: https://forums.docker.com/t/windows-server-2016-tp5-docker-server-remote-management/10315/5317

I'm running docker for mac and want to start up a windows container. From what I see this should work via a virtual machine. But I'm unclear where to find out how to get it to work? Or does it only work for linux containers? Thanks in advance!

docker build nanoserver/
Sending build context to Docker daemon   2.56kB
Step 1/6 : FROM microsoft/nanoserver:10.0.14393.1480
10.0.14393.1480: Pulling from microsoft/nanoserver
bce2fbc256ea: Pulling fs layer 
baa0507b781f: Pulling fs layer 
image operating system "windows" cannot be used on this platform

解决方案

See this link: https://forums.docker.com/t/how-do-i-start-a-windows-docker-container-on-my-mac-os-x/12953/2

Text if you can't follow the link:

On OS X, get VirtualBox. Get Windows Server 2016 Tech Preview 5 ISO167 (free download from Microsoft) Create WS 2016 TP5 VM in virtualbox Run this206 in the new VM Now you can run Windows Containers in the VM. To make the setup a little easier to use, see this: https://forums.docker.com/t/windows-server-2016-tp5-docker-server-remote-management/10315/5317

这篇关于如何在OSX上运行Docker Windows容器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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