Tools, FAQ, Tutorials:
PATH Directories of Windows Container
How to see the PATH directories of Windows image? I want to know what programs I can run on the container.
✍: FYIcenter.com
One way to see the PATH directories of a Windows image
is to run the CMD shell interactively. Then run the SET
sub-command in the shell.
C:\fyicenter> docker run --name windows --entrypoint cmd --tty --interactive microsoft/dotnet-samples Microsoft Windows [Version 10.0.14393] (c) 2016 Microsoft Corporation. All rights reserved. C:\app>dir C:\app>set ALLUSERSPROFILE=C:\ProgramData APPDATA=C:\Users\ContainerAdministrator\AppData\Roaming ASPNETCORE_URLS=http://+:80 CommonProgramFiles=C:\Program Files\Common Files CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files CommonProgramW6432=C:\Program Files\Common Files COMPUTERNAME=E78F8A122016 ComSpec=C:\windows\system32\cmd.exe DOTNET_RUNNING_IN_CONTAINER=true DOTNET_VERSION=2.2.2 LOCALAPPDATA=C:\Users\ContainerAdministrator\AppData\Local NUMBER_OF_PROCESSORS=4 OS=Windows_NT Path=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem; C:\Windows\System32\WindowsPowerShell\v1.0\; C:\Users\ContainerAdministrator\AppData\Local\Microsoft\WindowsApps; C:\Program Files\dotnet; PATHEXT=.COM;.EXE;.BAT;.CMD PROCESSOR_ARCHITECTURE=AMD64 PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 79 Stepping 1, GenuineIntel PROCESSOR_LEVEL=6 PROCESSOR_REVISION=4f01 ProgramData=C:\ProgramData ProgramFiles=C:\Program Files ProgramFiles(x86)=C:\Program Files (x86) ProgramW6432=C:\Program Files PROMPT=$P$G PUBLIC=C:\Users\Public SystemDrive=C: SystemRoot=C:\windows TEMP=C:\Users\ContainerAdministrator\AppData\Local\Temp TMP=C:\Users\ContainerAdministrator\AppData\Local\Temp USERDOMAIN=User Manager USERNAME=ContainerAdministrator USERPROFILE=C:\Users\ContainerAdministrator windir=C:\windows C:\app>exit C:\fyicenter> docker rm windows
As you can see, the PATH directories include standard Windows programs, PowerShell tools and .NET tools.
⇐ Commands Available on Windows Container
2022-02-02, 586👍, 0💬
Popular Posts:
What is EPUB 3.0 Metadata "dc:publisher" and "dc:rights" elements? EPUB 3.0 Metadata "dc:publisher" ...
Where is API Management Service on my Azure Portal? If your IT department has signed up for an Azure...
How to use the "set-body" Policy Statement for an Azure API service operation? The "set-body" Policy...
Where to find tutorials on PHP language? I want to know how to learn PHP. Here is a large collection...
How to include additional claims in Azure AD v2.0 id_tokens? If you want to include additional claim...