离线安装configurable-http-proxy
这里一个nodejs的包,但我们要离线安装。
直接把/usr/lib/node_modules/configurable-http-proxy拷过去,然后追加到PATH
离线安装python3.7
安装python3.7: https://www.jianshu.com/p/8c8972289196
离线打包python环境
python3.7 -m pip freeze > hub_req.txt
python3.7 -m pip download -r hub_req.txt -d ./pkgs/
tar -czf pkgs.tar.gz pkgs/
离线安装python包:
python3 -m pip install --no-index --find-links=./pkgs -r hub_req.txt
离线安装docker
参考官方文档:https://docs.docker.com/install/linux/docker-ce/centos/
下载docker包:https://download.docker.com/linux/centos/7/x86_64/stable/Packages/docker-ce-18.06.3.ce-3.el7.x86_64.rpm
遇到问题:Requires: container-selinux >= 2.9
离线打包docker镜像
打包:
docker save -o just-docker-notebook.tar just/docker-notebook:v2
# 再压缩下
tar -czf just-docker-notebook.tar.gz just-docker-notebook.tar
导入:
docker load < just-docker-notebook.tar
docker images