前端时间还早想着在win上面安装DokerDesktop,处理暂用【Docker】Docker Desktop更换非C盘符(减轻占用率),这次心想可否反过来呢?就是想在:Docker里面安装win系统
docker pull microsoft/windowsservercore
docker create --name pig-windows -it microsoft/windowsservercore cmd.exe
docker start pig-windows
docker exec -it pig-windows cmd.exe
docker pull mcr.microsoft.com/windows/servercore:ltsc2019
docker create --name pig-windows -it mcr.microsoft.com/windows/servercore cmd.exe
docker start pig-windows
docker exec -it pig-windows cmd.exe