powershell - 如何在 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"
解决方案
推荐阅读
- flutter - 在颤动中发送后台事件的推送通知
- python-3.x - 如何通过给定名称终止线程
- android - Android Karamunting CameraKit 0.13.5 - 无视频输出
- xcode - 是否可以更改 Xcode 的 iOS DeviceSupport 默认文件夹位置?
- python - 为什么我的自动编码器的损失在训练期间根本没有下降?
- tensorflow - 为什么在 keras.applications 中只支持权重初始化的 softmax 和随机初始化
- c# - C# WPF - 如何重用 ToogleButton 样式
- qt - QWebEngineView - 处理媒体会话 API
- python - 我的 Win 10 python 安装不会创建颜色。ANSI 字符未解释,Colorama,所有其他模块都可以安装,但不要“着色”。
- r - 使用插件将 RevealJS 演示文稿发布到 RStudio Connect?