Powershell in 1803 nanoserver RRS feed

  • Question

  • This page: mentions that powershell is not included in nanoserver since 1803, but there is a way to "include" it when building container. Can I get some guidance on "including" the Powershell when building the container?
    Thursday, May 24, 2018 3:09 AM

All replies

  • Greetings,

    Is it possible for you to use microsoft/powershell:nanoserver?

    Sic Parvis Magna

    Thursday, May 24, 2018 5:06 AM
  • There is no powershell base image for 1803. Nanoserver in docker hub is 1709 based. You'd have to install powershell yourself and you can see how Microsoft doing it by examining dockerfile for nanoserver 1709 and just include those files in your base 1803 image (
    Thursday, May 24, 2018 11:48 AM
  • Hi !

    indeed there is no powershell included in microsoft/nanoserver base image.

    I just released an article where I described the "multi stage build" technic you could use to build a docker image.

    RabbitMQ / Erlang windows docker images

    The idea is pretty simple:

    • start FROM microsoft/windowsservercore
    • use all powershell commands you want to prepare your image
    • use a second FROM microsoft/nanoserver
    • copy what you need from the first stage into your final stage

    Hope it helps

    Warm Regards, Jonathan Muller -- GSX Monitor Project manager Linkedin C++ Community Group Founder :

    Wednesday, May 30, 2018 2:18 PM