如何在 Windows 容器中通过命令提示符编辑文本文件?

问题描述 投票:0回答:1

我现在在这个问题上苦苦挣扎了一段时间。谁能帮我在 Windows 容器中通过命令提示符编辑文本文件? 我应该能够在命令提示符下读取该文件并在 Windows 容器中对其进行编辑。

提前致谢!

docker containers command-line-arguments command-prompt windows-server
1个回答
0
投票

您可以使用Nano

Git 附带了 nano,所以如果你已经安装了 Git,你可以直接运行 \usr ano.exe

如果你没有Git,你可以安装chocolatey,然后运行

choco install nano
,然后运行nano。

© www.soinside.com 2019 - 2024. All rights reserved.