首页 > 解决方案 > 如何在 windows nano server 容器上安装 telnet 客户端?

问题描述

我需要使用 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" 

标签: powershelldockerdocker-for-windows

解决方案


推荐阅读