We’ve installed the WIM for the Container base Image, then we can see it from:

Here, we will do following:

  • Use “WindowsServerCore” base Image to create a Container
  • Start the Container
  • Enter into the Container
    • Read some basic information
    • Make changes on folder and files
    • Mark around with Registry
    • Windows feature install or removal
  • Exit from the Container
  • Stop the Container
  • Start it again
  • Check values
  • Stop and remove

There was something stupid I did for this Lab: I deleted system files, a lot…. and trying to install Windows Feature IIS and didn’t get successful. So I have to use a new Container to do the demo, that’s why you can see the Container ID is different from previous pic. So please be careful when you are trying delete system files. šŸ™‚

Hopefully this will give you an idea about what container is and why do we need it…

  1. We are creating a new Container by using the Container base Image:
  2. Check the Container’s state

  3. Start the Container
  4. Check the Container’s state again

  5. Enter into the Container
    1. Enter as default

    2. Enter as Admin

    3. Get some basic information inside and outside of this Container (Do compare)

    4. Simply delete some random files… or make some random folders in C

    5. Delete heaps things in HKLM:\Software

    6. Install IIS feature in Container

  6. Exit Container -> Exit
  7. Stop Container
  8. Start Container again
  9. Check the value

  10. Remove Container

     

This is the basic operation for Container in Windows. As you can see, it’s a application level virtualisation technology. Next time, I’ll do some basic performance test to show how quickly we can bring up an application. šŸ™‚