January 4, 20197 yr Hey Everyone, I am a long time user of Unraid. I am just wondering if anyone can create a microsoft/powershell docker for unraid. https://hub.docker.com/r/microsoft/powershell Or has anyone been able to install it on the host? If so, any instructions? Thanks.
January 4, 20197 yr Apps Tab - Enable DockerHub search results in it's settings. Search for powershell Install it, then (technically, the above isn't even required, but only lets you have unRaid allow you to uninstall it) Linux 4.18.20-unRAID. Last login: Tue Jan 1 20:53:05 -0500 2019 on pts/1 from 192.168.1.183. root@ServerA:~# docker run -it microsoft/powershell PowerShell 6.1.1 Copyright (c) Microsoft Corporation. All rights reserved. https://aka.ms/pscore6-docs Type 'help' to get help. PS /> Write-Host "Hello, World!" Hello, World! Edited January 4, 20197 yr by Squid
January 4, 20197 yr Author Squid... Thank you so much... got it working in no time from the webterminal itself. But if I want it to run under the Docker tab, click on Powershell / _Console, it throws an error. and the log file shows the PS command line lol Is there a way to open the command line within its own webbrowser terminal? And keep it running even thought its not open. example http://hostname/dockerterminal/powershell/ Thanks.
February 2, 20197 yr To run it from the docker tab, click advanced view, enter "-ti" in extra parameters. Now when you click on Powershell / _Console you'll be at the shell prompt (or bash prompt if you selected it). From here type "pwsh" and you'll be in powershell. Also, you can click unraid's web terminal, and at the unraid prompt type "docker attach powershell {or the name of your powershell container}". Hit the enter button on your keyboard and you should be at the powershell prompt. You can use this template if it's easier. my-powershell.xml
November 7, 20196 yr Where are the files for this docker located after installation? Looked in AppData and didn't see anything in there. Hoping I can use this to enable the powershell extension and terminal in the VS Code server docker.
May 1, 20215 yr On 2/1/2019 at 8:32 PM, dee31797 said: unraid prompt type "docker attach powershell {or the name of your powershell container}". Hit the enter button on your keyboard and you should be at the powershell prompt. ---- Edit ---- I just tried again from the web console and it looks like when I open it up, it loads up the docker log with errors and then starts to become unresponsive, so I think I will just forget about it for now. I just gave this a try by sshing into my unraid box as usual, then doing 'docker attach powershell' and the console exploded with errors. It seemed to work fine when I actually did it from the web console, though. Not sure exactly what is going on here, though. Edited May 1, 20215 yr by MostHated
Archived
This topic is now archived and is closed to further replies.