1 安装Hyper-V
pushd "%~dp0"
dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >hyper-v.txt
for /f %%i in ('findstr /i . hyper-v.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"
del hyper-v.txt
Dism /online /enable-feature /featurename:Microsoft-Hyper-V-All /LimitAccess /ALL
2 安装docker
docker for Windows不要在家庭版上安装dockertool坑有点多
3 更改version为 Professional
4最重要的一步如果想让junit跑起来
安装好右键docker鼠标找到Settings->General如下图勾选红色标记,只有这样junit才能连上docker

还有个细节
如果init_script.sql脚本,需要在脚本上加上begin commit 不然初始化脚本无法运行
网友评论