
次の Dockerfile を使用してイメージを作成しました。
FROM mcr.microsoft.com/dotnet/aspnet:6.0-windowsservercore-ltsc2019 AS base
USER ContainerAdministrator
RUN powershell.exe -Command Add-WindowsFeature "telnet-client"
次のコマンドでコンテナを起動しました:docker run -it --network=nat <image>
コンテナ内で次のコマンドを実行しました。telnet <myhost>
設定なしで、エラー メッセージなしでコマンド プロンプトが返されます%errorlevel%
。
同じコマンドプロンプトから ping を実行すると、問題なく動作します。
何か案は?