因为镜像太大,默认在c盘,所以要先创建软连接
Windows中更改Docker默认安装路径方法
https://www.cnblogs.com/pansidong/p/16419530.html
安装docker容器:
https://blog.csdn.net/qq_39611230/article/details/108641842
安装好了之后,拉docker镜像:
这里直接拉取最新版本,若需要特定版本则要在镜像名后加":{需要的版本号}",如果下载失败则尝试使用国内的镜像源。
docker pull federatedai/standalone_fate:{1.10.0}
运行容器:
docker run -it --name standalone_fate -p 8080:8080 federatedai/standalone_fate:1.10.0
进入容器:
docker exec -it standalone_fate bash
初始环境变量:
source bin/init_env.sh
进入env环境
执行下述两行代码,进行简单测试
flow test toy -gid 10000 -hid 10000
fate_test unittest federatedml –yes
开始跑案例:
fate_test benchmark-quality -i examples/benchmark_quality/hetero_linear_regression
按下 Ctrl + D 或输入 exit 命令来退出当前 shell 环境。
停止容器:您可以使用以下命令停止容器:
docker stop standalone_fate