Code Monkey home page Code Monkey logo

Comments (2)

lowenna avatar lowenna commented on July 21, 2024

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.

notanaverageman avatar notanaverageman commented on July 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.