Comments (2)
This is expected on client where containers run as Hyper-V containers. If no containers have previously been started on the system, HCS will automatically create a template VM which serves as the "clone" for other Hyper-V containers which are created.
The template will show up under hcsdiag list
or get-computeprocess
and can be stopped if you need to through get-computeprocess | stop-computeprocess -force
PS E:\go\src\github.com\docker\docker> docker run --rm --isolation=hyperv microsoft/nanoserver cmd /s /c echo hello
hello
PS E:\go\src\github.com\docker\docker> get-computeprocess
Id : 74F9C629-8E85-4AA6-A268-C9740EFA4092
Type : Container
Isolation : HyperV
IsTemplate : True
RuntimeId : 74f9c629-8e85-4aa6-a268-c9740efa4092
RuntimeTemplateId :
RuntimeImagePath : C:\36793\windowsfilter\1efd94b4bfd38a2430b99138f333020f73035ff633b6b363145c1af0d1c7be8a\UtilityVM
Owner :
PS E:\go\src\github.com\docker\docker> hcsdiag list
74F9C629-8E85-4AA6-A268-C9740EFA4092
Hyper-V Container Template, Created, 74F9C629-8E85-4AA6-A268-C9740EFA4092
PS E:\go\src\github.com\docker\docker> get-process vmwp
Handles NPM(K) PM(K) WS(K) CPU(s) Id SI ProcessName
------- ------ ----- ----- ------ -- -- -----------
286 14 5908 17760 2.70 3876 0 vmwp
PS E:\go\src\github.com\docker\docker> get-computeprocess | stop-computeprocess -force
PS E:\go\src\github.com\docker\docker> get-process vmwp
get-process : Cannot find a process with the name "vmwp". Verify the process name and call the cmdlet again.
At line:1 char:1
+ get-process vmwp
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (vmwp:String) [Get-Process], ProcessCommandException
+ FullyQualifiedErrorId : NoProcessFoundForGivenName,Microsoft.PowerShell.Commands.GetProcessCommand
PS E:\go\src\github.com\docker\docker>
from hcsshim.
Hmm. In my case I see multiple instances of this template containers. I will try to investigate more to find a reproducable case.
Also they are not stopped when docker is stopped. (I don't know if they should be stopped. But, then it will be a Docker bug.)
Output of hcsdiag list
when Docker is stopped: (The linux container is another bug related to docker push
. I will open another issue for it when I find the steps.)
PS C:\WINDOWS\system32> hcsdiag list
27CD5E01-4486-4389-9D8C-289E90900F55
Hyper-V Container Template, Created
7f5be93103fd7e911a782455a01a9e72777504cb1cab8887acf49656f1a21176_svm
Hyper-V Linux Container, Running
FC9178F1-5F2F-48FD-B1F0-676A5CE02EBE
Hyper-V Container Template, Created
from hcsshim.
Related Issues (20)
- github.com/golang/mock/mockgen now included into callers HOT 2
- Windows Containers for GUI application
- Dynamic add MappedPipe to Silo unable to read HOT 6
- v0.11: dependency on `containerd/cgroups` was accidentally rolled back from v3 to v1? HOT 2
- Error in launching Windows container with GPU device in Hyper-v isolation HOT 1
- Feature request: ConPTY subpackage
- GitHub is showing deprecated v0.10.0 as "Latest release" HOT 1
- Where is the HNS/HCS Endpoint default DNS config? HOT 5
- containerd-shim-runhcs-v1 can't parse runtimeoptions.v1.Options
- windows server 2022: create HNSEndpoint error:The provided policy configuration is invalid or missing parameters.
- Update open-policy-agent dependency HOT 1
- "failed to create containerd task: failed to create shim task: hcs::CreateComputeSystem xxxxxxx--cid--xxxxxxxx : Access is denied.: unknown"
- questions w.r.t. "osversion" package HOT 2
- choco install magicsplat-tcl-tk fails with hcsshim::ImportLayer failed in Win32 HOT 1
- hcsshim::PrepareLayer failed in Win32: The system cannot find the path specified. (0x3) on Docker Desktop 4.28.0 (139021) HOT 1
- ORMergeHives - public documentation?
- Cannot create New-BCContainer: hcsshim::ExpandScratchSize failed in Win32: The system cannot find the file specified. "c:\bcartifacts.cache:c:\dl"
- Process running within Docker Container throws OOM error but container doesn't report the error when exited HOT 1
- v0.12.1 hash was changed? HOT 6
- [Feature Request] Provide details when throwing errors
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 hcsshim.