我正在修改一些我没写过的代码,而且我对Razor很新
这是一个选择的车辆列表,代码如下所示:
<select name="selectVehicle" class="cls_vehicles" data-bind="options: $root.vehicles,optionsCaption:$root.noVehicleText, optionsText: 'VehicleNumber',optionsValue: 'VehicleID',value: VehicleID"><option value=""/></select>
Run Code Online (Sandbox Code Playgroud)
我的数据源除了Vehicleid和Vehiclenumber之外还包含Vehicletype,现在我想根据类型突出显示车辆,因此汽油车是蓝色的而柴油车是绿色的.
但我不知道如何解决这个问题,非常感谢任何帮助.
我制作了一个.net核心应用程序,并将其上传到docker hub
当我尝试将其拉到自己的计算机上时(赢得10),它就可以正常工作
当我尝试将其拉到服务器(服务器2016)时,出现错误:
docker pull arrivaflg/flg:20180618104928
....
failed to register layer: re-exec error: exit status 1: output: ProcessUtilityVMImage \\?\C:\ProgramData\docker\windowsfilter\cf1f49a6508aaa657768d667c58779e571392a80be0ba7519fe0835ac2476402\UtilityVM: The system cannot find the path specified.
Run Code Online (Sandbox Code Playgroud)
但是真正有趣的部分是,当我尝试提取特定的Microsoft映像时,出现了SAME错误消息。(这是Visual Studio在我的机器上的docker文件中使用的版本1709)
c:\tmp>docker pull microsoft/nanoserver:1709
1709: Pulling from microsoft/nanoserver
407ada6e90de: Extracting [==================================================>] 81.04MB/81.04MB
85710d780d68: Download complete
failed to register layer: re-exec error: exit status 1: output: ProcessUtilityVMImage \\?\C:\ProgramData\docker\windowsfilter\cf1f49a6508aaa657768d667c58779e571392a80be0ba7519fe0835ac2476402\UtilityVM: The system cannot find the path specified.
Run Code Online (Sandbox Code Playgroud)
如果我未指定版本号(默认为最新版本),则在服务器上安装Nano服务器没有问题
但是,将地雷图像发送到服务器仍然是一个问题。
所以我猜我应该使用特定版本的nano服务器。
我已经在我的dockerfile中尝试过这些:
FROM microsoft/aspnetcore:2.0-nanoserver-1709 AS base
and
FROM microsoft/aspnetcore:2.0-nanoserver-1803 AS base
Run Code Online (Sandbox Code Playgroud)
我的服务器信息:
C:\Windows\system32>docker info
Containers: 3 …Run Code Online (Sandbox Code Playgroud)