Forum Discussion
GregorySuvalian
Jul 16, 2017Iron Contributor
How are you expected to adminster nanoserver inside container if powershell is removed?
As per release notes nano server was optimized by removing powershell from it. How are you expected to administer it (or build using dockerfile) for that matter if no powershell is available?
- 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.
Jacob Blanco Rodriguez
Aug 01, 2017Copper Contributor
Hi Gregory !
Now we can use a version of nano server container with powershell, but I have not good news about, It's not very useful that we can't connect to a remote PSsession to interact with containers. It will be a easier way to work with it.
Hope Windows Server Team light us with this.
Now we can use a version of nano server container with powershell, but I have not good news about, It's not very useful that we can't connect to a remote PSsession to interact with containers. It will be a easier way to work with it.
Hope Windows Server Team light us with this.