简体   繁体   English

Windows Server容器中的Unix命令-Docker Windows

[英]Unix commands in a windows server container - Docker Windows

Can I run unix commands in a windows server container docker for windows? 可以在Windows的Windows服务器容器 docker中运行Unix命令吗?

I tried Cygwin tools installed in my host (Windows) in the docker but that doesn't work. 我尝试在Docker的主机(Windows)中安装的Cygwin工具,但无法正常工作。
--Perhaps the cygwin binaries are built in another OS than Windows10 ? -也许cygwin二进制文件是在Windows10以外的其他操作系统中构建的?

Have you some tips for me ? 你有给我一些提示吗? Thanks. 谢谢。

Try adding cygwin's bin folder to your PATH or use full path when running cygwin's commands. 尝试将cygwin的bin文件夹添加到您的PATH中,或者在运行cygwin的命令时使用完整路径。 ie: C:\\cygwin64\\bin\\ls.exe c:\\some\\dir . 即: C:\\cygwin64\\bin\\ls.exe c:\\some\\dir sleep is also a windows command, so it works unrelated to cygwin installation. sleep也是Windows命令,因此它与cygwin安装无关。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM