容器中添加python环境

开发需要微服务调用python脚本,故配置基础镜像添加python环境

下载通用镜像harbor.zxz.com/common/oracle-jdk:1.8

docker pull harbor.zxz.com/common/oracle-jdk:1.8

进入容器安装python

docker run -it harbor.zxz.com/common/oracle-jdk:1.8 /bin/bash
#替换原有的镜像仓库
sed -i 's/deb.debian.org/mirrors.163.com/g' /etc/apt/sources.list
#更新镜像仓库
apt-[......]

继续阅读

发表在 docker, network | 留下评论