离线安装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

相关文章:

  • 2021-05-20
  • 2021-05-03
  • 2022-01-11
  • 2021-08-29
  • 2020-06-01
  • 2020-07-25
  • 2020-10-01
猜你喜欢
  • 2021-05-18
  • 2021-11-01
  • 2022-12-23
  • 2021-11-27
  • 2021-10-18
  • 2021-11-15
  • 2021-07-03
相关资源
相似解决方案