-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to setup $env:Path in pwsh.exe in powershell:nanoserver-1803 container? #88
Comments
Set the user variable and it will have the same effect on nano server. Sorry, nano server is weird. |
Feel free to mention me on any of the issues you file in this repo. It can take me some time to get around to looking at the issues otherwise (the fact that I've talked on this thread is equivalent now.) |
Hi So, I need to PowerShell to do some thing, especially environment variables. |
Yeah, you just got one line of code wrong.
is not supported on nanoserver, but
Should work and do what you want, per the nanoserver team. I hit the same issue making the image. |
Hi @TravisEz13
Dockerfile
Build Step
Step 4/6: setting is work. Thanks your help. |
I want build some application use
mcr.microsoft.com/powershell:nanoserver-1803
, but can't set$env:PATH
bySetEnvironmentVariable
method.How to setup
$env:Path
in pwsh.exe inpowershell:nanoserver-1803
container?Steps to reproduce
Sample Dockerfile
Expected behavior
SetEnvironmentVariable
is work.Actual behavior
Show "Requested registry access is not allowed." error message.
Environment data
The text was updated successfully, but these errors were encountered: