3 ms·
I actually cut my sysadmin teeth on Windows 2000, and found myself wondering how on earth they could `docker exec` a shell. These were, comparatively, the dark
by don-code 5y ago
I actually cut my sysadmin teeth on Windows 2000, and found myself wondering how on earth they could `docker exec` a shell. These were, comparatively, the dark ages of Windows administration, and almost all tasks were done through a GUI.
The implementation is nothing short of genius: they use a Windows version of `netcat` (the common UNIX tool, but compiled for Windows from the Windows 2000 Resource Kit), then use `srvany` (also from the Windows 2000 Resource Kit) to start `netcat` as a system service, but with `cmd.exe` piped to its standard in and out.
Kudos on this solution!
- mateuszf 5y agoIt's genius because it's simple and actually is not a workaround but use of the tools as intended.