Skip to content

Conversation

@TravisEz13
Copy link
Member

Also, Address #4310


# setx /M fails on nanoserver-insider, setting the user path
# Set the path
RUN setx PATH "%PATH%;%ProgramFiles%\PowerShell"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious, setx /M is not necessary on nanoserver because it's a single user OS, correct?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

correct, they fixed the container to use the per user path.

# Set the path
RUN setx PATH "%PATH%;%ProgramFiles%\PowerShell"

CMD ["C:\\Program Files\\PowerShell\\PowerShell.exe"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In docker/README.md:

Due to an issue with the container not picking up the path, you must specify the path when running a command on the command line.

Looks like the PATH issue has been fixed, so the document should be updated.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added a note that it will be fixed soon. I have to setup a build machine matching the exact build of the container, which might take me some time.

Copy link
Member

@adityapatwardhan adityapatwardhan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@TravisEz13 TravisEz13 merged commit 7ae955f into PowerShell:master Aug 12, 2017
@TravisEz13 TravisEz13 deleted the Update_NanoServerInsider_for_New_Bulid branch August 12, 2017 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants