离线安装

离线安装configurable-http-proxy

这里一个nodejs的包,但我们要离线安装。

直接把/usr/lib/node_modules/configurable-http-proxy拷过去,然后追加到PATH

离线安装python3.7

安装python3.7: https://www.jianshu.com/p/8c8972289196

解决ssl不能导入问题:https://www.cnblogs.com/sharesdk/p/10070988.html

离线打包python环境

https://blog.csdn.net/vevenlcf/article/details/83110204

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

去下载依赖包:http://ftp.riken.jp/Linux/cern/centos/7/extras/x86_64/Packages/container-selinux-2.21-1.el7.noarch.rpm

离线打包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

posted on 2020-08-02 17:38  我和你并没有不同  阅读(561)  评论(0编辑  收藏  举报