放射的常用基础镜像
放射目前采用ubuntu18.04和python3.7, 使用最多的基础镜像为:
registry.imsightmed.com/softwaredevelop/devops-docker/python:3.7
这个镜像的Dockerfile强行将系统的python从默认的3.6指向了3.7。
目前已知的副作用
add-apt-repository 无法正常使用
如:add-apt-repository -y ppa:alex-p/tesseract-ocr
添加新的apt repository,将会产生报错。
重新安装software-properties-common 和 python3-apt 也无法解决。
原因:
将ubuntu18.04的系统python从python3.6改为python3.7后,add-apt-repository也会默认变成python3.7运行。
add-apt-repository这个文件目前在ubuntu18.04中,仅支持python3.6
解决方法:
# 1c 代表第1行 # 1c #!/usr/bin/python3.6 就是将/usr/bin/add-apt-repository这个文件的第一行改为#!/usr/bin/python3.6 sed '1c #!/usr/bin/python3.6' /usr/bin/add-apt-repository -i |
apt update && apt install -y software-properties-common python3-apt && sed '1c #!/usr/bin/python3.6' /usr/bin/add-apt-repository -i && add-apt-repository -y ppa:xxxxxxx |