Skip to content
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

Add powershell to hostprocess container paths #1473

Merged
merged 1 commit into from
Aug 3, 2022

Conversation

dcantah
Copy link
Contributor

@dcantah dcantah commented Aug 3, 2022

A large use case for these containers is to get a shell onto a node or
to carry out administrative tasks via powershell commands, but a lot
of images have a PATH defined in the docker file that only includes system32.

Before any sort of slim image is available for these that doesn't have a
PATH set (so it will just use the hosts) add in powershell and the system32/wbem
dir for wmic to alleviate some "what is going on" moments. Additionally
rearrange some code closer together that was a bit too spread for no reason.

@dcantah dcantah requested a review from a team as a code owner August 3, 2022 14:20
@dcantah dcantah marked this pull request as draft August 3, 2022 16:03
@dcantah dcantah marked this pull request as ready for review August 3, 2022 19:02
@dcantah
Copy link
Contributor Author

dcantah commented Aug 3, 2022

cc @marosset

A large use case for these containers is to get a shell onto a node or
to carry out administrative tasks via powershell commands, but a lot
of images have a PATH defined in the docker file that only includes system32.

Before any sort of slim image is available for these that doesn't have a
PATH set (so it will just use the hosts) add in powershell and the system32/wbem
dir for wmic to alleviate some "what is going on" moments. Additionally
rearrange some code closer together that was a bit too spread for no reason.

Signed-off-by: Daniel Canter <dcanter@microsoft.com>
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