Forum Discussion
How are you expected to adminster nanoserver inside container if powershell is removed?
- Jul 17, 2017
With a Dockerfile, the multi-stage builds introduced in Docker 17.05 and COPY deployment.
Here is an example to put Node.js into a nanoserver-insider image without PowerShell: https://github.com/StefanScherer/dockerfiles-windows/blob/07cedcf2cc93e669bba9c961121feda6f43dab59/node/8.1/nano/Dockerfile
If you need PowerShell and can't deploy with just COPY instructions and simple environment changes with setx.exe, then you can use "FROM microsoft/nanoserver-insider-powershell" which is slighly bigger than the "microsoft/nanoserver-insider" image.
With a Dockerfile, the multi-stage builds introduced in Docker 17.05 and COPY deployment.
Here is an example to put Node.js into a nanoserver-insider image without PowerShell: https://github.com/StefanScherer/dockerfiles-windows/blob/07cedcf2cc93e669bba9c961121feda6f43dab59/node/8.1/nano/Dockerfile
If you need PowerShell and can't deploy with just COPY instructions and simple environment changes with setx.exe, then you can use "FROM microsoft/nanoserver-insider-powershell" which is slighly bigger than the "microsoft/nanoserver-insider" image.
- Jacob Blanco RodriguezAug 01, 2017Copper ContributorThat's a great job Stefan ! Congrats !
I think your solution it's great, but if we want to deploy/install a role?
I'm trying to deploy IIS and I have not luck at all, no PS session, no dism, not nanoserverpackage, well nothing seems to work here. Size is important, sure, but it have to be useful and easy to deal with it, otherwise sysadmins does not interesting at all.
Thanks for your post and job. - GregorySuvalianJul 17, 2017Iron Contributor
I did not realize that there is separate image with powershell baked in. Based on release anouncement it looked like that there will be no base images anymore with powershell.