Comments (4)
$env:CONTAINER_BASE_LAYER needs to be set
from dotnet-computevirtualization.
from dotnet-computevirtualization.
Have you tried entering the path/GUID to the container’s base layer? If you’re using Docker’s windowsfilter dir struct, itll be the directory directly under the windowsfilter folder that has a layer.json with a ”null” entry. It’s easiest to find the base layer in a freshly installed docker environment.
from dotnet-computevirtualization.
I just tried the above, using:
ls -depth 5 -filter layerchain.json | ? Length -eq 4 | select -Property length,Directory
I found that there are only two base layers that have null as content in layerchain.json (note not layer.json, because that does not appear to exist in the current version of Docker).
Using either directory as environment variable in the unit tests gives me the following output:
System.AggregateException : One or more errors occurred. (HCS function call returned error.) ---- Microsoft.Windows.ComputeVirtualization.HcsException : HCS function call returned error. -------- System.Runtime.InteropServices.COMException : The container operating system does not match the host operating system. (Exception from HRESULT: 0xC0370101)
Note that I'm running on Windows 10, so perhaps this library only works with native Windows Server containers? I can run nanoserver/iis using docker though, so I'll see if I can dive in their source code to see what happens on hcsshim level.
Edit: Also I had to run Visual Studio as administrator, else I would get an AccessDenied error.
from dotnet-computevirtualization.
Related Issues (13)
- Add Sandbox object for convenience and use of methods like ExpandSandboxSize
- Move test code into this repo HOT 1
- Create dev NuGet package for rolling release
- Update test runtime once appveyor supports it
- Storing containers on a network driver
- Cgroup limits
- Windows Host Compute Service bug breaks sandboxes bigger than 20G on Windows 1903
- Can I use HCS to relize the function of "docker update"?"docker update" does not support "docker update",but I want dynamically set resource constraint of Hyper-V container
- This repo is missing important files HOT 1
- Update to nuget 0.1.0-alpha4
- Auto-terminate of container should use new HCS capabilities HOT 2
- Process Environment DataMember is incorrectly serialized as Tuple<string, string>
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dotnet-computevirtualization.