我无法按预期/记录在Windows Server 1709上运行Linux映像。 [英] I can't run Linux images on Windows Server 1709 as expected/documented.

查看:74
本文介绍了我无法按预期/记录在Windows Server 1709上运行Linux映像。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



预期行为


我希望当我运行"Docker pull ubuntu"时,它会拉下ubuntu图像。出于某种原因,当我将"experimental"标志设置为true时,Docker不会尝试拉取linux容器,并且
环境变量设置为启用LCOW并默认为linux。如果我可以指定拉入linux容器,那就足够了,但是我找不到关于如何告诉docker专门为linux平台提取/运行图像的文档。

Expected behavior

I expect that when I run "Docker pull ubuntu" it will pull down the ubuntu image. For some reason Docker doesn’t try to pull linux containers when I have the "experimental" flag set to true, and the environment variables set to enable LCOW and default to linux. If I could specify pulling in linux container, that would suffice for now, but I can’t find doc on how to tell docker to pull/run images for the linux platform specifically.

我收到以下错误...

C:\\ \\ Users\admin> docker pull mongo

使用默认标签:最新
最新
:从图书馆/ mongo拉出来

清单列表条目中的windows / amd64没有匹配的清单

I get the following error…
C:\Users\admin>docker pull mongo
Using default tag: latest
latest: Pulling from library/mongo
no matching manifest for windows/amd64 in the manifest list entries

-----系统信息-----

标题:微观Windows Server Standard
>
InstallDate:1/24/2018 3:45:58 PM

ServicePackMajorVersion:0

OSArchitecture:64位

BootDevice:\Device \ HarddiskVolume2

BuildNumber:16299

CSName:WIN-I61EJ8VOFKH

-----System Info-----
Caption : Microsoft Windows Server Standard
InstallDate : 1/24/2018 3:45:58 PM
ServicePackMajorVersion : 0
OSArchitecture : 64-bit
BootDevice : \Device\HarddiskVolume2
BuildNumber : 16299
CSName : WIN-I61EJ8VOFKH

- 相关Env-

LCOW_API_PLATFORM_IF_OMITTED linux

LCOW_SUPPORTED 1

— relevant Env—
LCOW_API_PLATFORM_IF_OMITTED linux
LCOW_SUPPORTED 1

- docker info ----

C:\ Users \admin> docker info

容器:0

跑步:0

暂停:0

停止:0

图片:0

服务器版本:17.06.3-ee-1-tp6

存储驱动程序:windowsfilter

Windows:

登录驱动程序:json-file

插件:

卷: local
>
网络:l2bridge l2tunnel nat null overlay transparent

日志:awslogs etwlogs流利的json-file logentries splunk syslog

Swarm:无效

默认隔离:进程

内核版本:10.0 16299(16299.15.amd64fre.rs3_release.170928-1534)

操作系统:Windows Server Standard

OSType:windows

架构:x86_64

CPU:4

总记忆:7.812GiB

名称:WIN-I61EJ8VOFKH

ID:GMPM:XNWL:OXG6:M5GD:OYOZ:5SZG:AWBU:2OFY:WGIS:5T6I:J7VG:YF4M

Docker Root Dir:C:\ ProgramData \ docker

调试模式(客户端):false

调试模式(服务器):false

注册表:  https://index.docker.io/v1/

实验:true

不安全的注册管理机构:

127.0.0.0/8

Live Restore Enabled:false

—docker info----
C:\Users\admin>docker info
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 0
Server Version: 17.06.3-ee-1-tp6
Storage Driver: windowsfilter
Windows:
Logging Driver: json-file
Plugins:
Volume: local
Network: l2bridge l2tunnel nat null overlay transparent
Log: awslogs etwlogs fluentd json-file logentries splunk syslog
Swarm: inactive
Default Isolation: process
Kernel Version: 10.0 16299 (16299.15.amd64fre.rs3_release.170928-1534)
Operating System: Windows Server Standard
OSType: windows
Architecture: x86_64
CPUs: 4
Total Memory: 7.812GiB
Name: WIN-I61EJ8VOFKH
ID: GMPM:XNWL:OXG6:M5GD:OYOZ:5SZG:AWBU:2OFY:WGIS:5T6I:J7VG:YF4M
Docker Root Dir: C:\ProgramData\docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Experimental: true
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false


  1. 安装服务器1709(1月)
  2. 按照docker / MSFT指南安装docker预览版(进行谷歌搜索这个...我无法粘贴链接,因为我的帐户未经验证)
  3. 添加"LCOW_API_PLATFORM_IF_OMITTED linux"环境变量。
  4. Docker pull ubuntu

推荐答案




 如果我可以指定拉入linux容器,那就足够了,但是我找不到关于如何告诉docker为linux平台提取/运行图像的文档。





尝试在pull命令中放置以下内容



Docker pull --platform = linux ....


 If I could specify pulling in linux container, that would suffice for now, but I can’t find doc on how to tell docker to pull/run images for the linux platform specifically.

Try placing the following within the pull command

Docker pull --platform=linux ....


这篇关于我无法按预期/记录在Windows Server 1709上运行Linux映像。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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