清除none镜像三步走
停止容器 --> 删除容器 --> 删除镜像
docker stop $(docker ps -a | grep "Exited" | awk '{print $1 }')
docker rm $(docker ps -a | grep "Exited" | awk '{print $1 }')
docker rmi $(docker images | grep "none" | awk '{print $3}')
Dockerfile alpine 安装包阿里云镜像
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/' /etc/apk/repositories \
Dockerfile python 安装包阿里云镜像
RUN pip3 install -i https://mirrors.aliyun.com/pypi/simple -r requirements.txt