Search code examples
dockerwindows-10windows-server-2016

How can i get an image of windows server 16 using docker on windows 10


I am thinking to get an image of windows server 16 using docker on windows 10 platform. Is it possible to get or should i try it on windows server 16 only ?


Solution

  • Why create Windows server docker image if you can download one from Docker Hub?

    To pull the official image, just run the command:

    $ docker pull microsoft/windowsservercore
    

    It will download the latest version of Windows server core, which as of this writing is 2016. Supported Windows Server 2016 (Long Term Support Channel) tags are:

    ltsc2016, latest
    10.0.14393.<Revision Number>
    10.0.14393.<Revision Number>_<Language Code>
    

    Once you have the image local on your machine, you can create your custom images using Dockerfile. To learn how to work with Dockerfiles, visit Aquasec Working with Dockerfiles documentation.

    Also, reference the official Dockerfiles guide on Docker site. You can then build custom docker image that fits your use case.