You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support installing WinGet on Docker for Windows containers #4144
msix packages are not possible to install on Windows containers .
WinGet is an excellent means to acquire tools for containers.
Proposed technical implementation details
Provide a Windows Containers friendly package. xcopy - deployment zip for example.
Reacted by Brice Lambson, Eligio Mariño, Paul Michalik, Levvie - she/her, Chris B, Cody Neiman, Oleksiy Gapotchenko, Eric To, Sergei Lebedev, MANU S PILLAI and 2 more
Reacted by Ruslan Sovinskyy, erstert3st, cloph, René Fritze, Sean Jost, Ivan Shevelenko, Jens, Joe Siponen, Dinesh Kandhai, Gabriel Devillers and 6 more
The powershell process in #3037 is considered the official position by the project? That is ridiculous to close this for that. There should be a straightforward way to install winget in docker.
PS C:\> winget source list --proxy $env:http_proxy
Name Argument Explicit
--------------------------------------------------------------
msstore https://storeedgefd.dsx.mp.microsoft.com/v9.0 false
winget https://cdn.winget.microsoft.com/cache false
My proxy is not blocking the winget cache, because iwr https://cdn.winget.microsoft.com/cache/source.msix -Proxy $env:http_proxy -UseBasicParsing -OutFile source.msix works...
I can even add the package, at least there's no error, but it doesn't change anything.
Interestingly, msstore stuff seems to work, at least a search does work, whereas winget does not
PS C:\> winget search git --proxy $env:http_proxy --verbose --source winget
Failed when opening source(s); try the 'source reset' command if the problem persists.
An unexpected error occurred while executing the command:
0x8a15000f : Data required by the source is missing
PS C:\> winget search git --proxy $env:http_proxy --verbose --source msstore
Name Id Version
------------------------------
My Git 9NLVK2SL2SSP Unknown
GitFiend 9NMNKLTSZNKC Unknown
GitLooker 9PK6TGX9T87P Unknown
Activity
mdanish-kh commentedon Feb 6, 2024
Related discussions:
JensNordenbro commentedon Feb 6, 2024
In a way the request is perhaps more about being able to install any msix, winget is just what is in front of me for the moment.
benh57 commentedon Jan 23, 2025
Would love to see this moved forward especially with server 2025 now including winget.
lygstate commentedon Aug 15, 2025
Is this a duplicated of #3037?
JensNordenbro commentedon Aug 15, 2025
It is.
Fix it * 2!
benh57 commentedon Aug 15, 2025
The powershell process in #3037 is considered the official position by the project? That is ridiculous to close this for that. There should be a straightforward way to install winget in docker.
JensNordenbro commentedon Aug 16, 2025
I just closed it to only have one copy open to make life easier to the devs (If there are any).
I can reoopen of you want me to but please consider my logic first
gerneio commentedon Aug 16, 2025
JensNordenbro the other issue was closed a year ago.
JensNordenbro commentedon Aug 16, 2025
Ohh, now I see your point.
jankap commentedon Oct 8, 2025
I can install winget inside a container of
mcr.microsoft.com/windows/server:ltsc2025via (thanks to #3037 (comment))You might have to adjust
$env:http_proxy.and a version is shown:
But I can't install anything:
I haven't cancelled it - happend automatically.
My proxy is not blocking the winget cache, because
iwr https://cdn.winget.microsoft.com/cache/source.msix -Proxy $env:http_proxy -UseBasicParsing -OutFile source.msixworks...I can even add the package, at least there's no error, but it doesn't change anything.
Interestingly, msstore stuff seems to work, at least a search does work, whereas winget does not
Of couese, I've reset the sources, but no change:
So long story short, is winget unusable on Windows Containers?
manupillai308 commentedon Jun 5, 2026
To anyone who is facing the same issue, I was able to get it working:
This works well for my usecase where I wanted to install a bunch of dependencies.
My host version:
Microsoft Windows [Version 10.0.26200.8457]