如何在Windows Nano服务器容器上安装telnet客户端?

时间:2019-11-14 13:27:17

标签: powershell docker docker-for-windows

我需要使用telnet客户端从Windows容器测试网络访问。 我为此找到的唯一映像是Microsoft nano服务器,它不是telnet客户端附带的。 我尝试添加它,但是接缝安装程序也不是nano服务器映像的一部分。

我该如何安装?

为清楚起见,请按以下步骤操作:

docker run -it microsoft/dotnet:nanoserver powershell

// gives the error: Add-WindowsFeature : The term 'Add-WindowsFeature' is not recognized as the     name of a cmdlet, function, script file,or operable program.
PS> powershell -Command Add-WindowsFeature "telnet-client" 

0 个答案:

没有答案
相关问题