各位好,我在一键部署时出现如下报错,希望指点,万分感谢
各位前辈好,本人在部署一个工具是遇到关于docker部署的问题,详情如图:
一、我的部署命令
[root@JPgithub Github-Monitor]# docker-compose up -d Creating network "github-monitor_default" with the default driver
二、报错信息
(1)应该是aliyun源的问题
Step 5/18 : RUN apt-get update ---> Running in 719540dabd73 Err:1 http://mirrors.aliyun.com/ubuntu xenial InRelease Temporary failure resolving 'mirrors.aliyun.com' Reading package lists... W: Failed to fetch http://mirrors.aliyun.com/ubuntu/dists/xenial/InRelease Temporary failure resolving 'mirrors.aliyun.com' W: Failed to fetch http://mirrors.aliyun.com/ubuntu/dists/xenial-updates/InRelease Temporary failure resolving 'mirrors.aliyun.com' W: Failed to fetch http://mirrors.aliyun.com/ubuntu/dists/xenial-backports/InRelease Temporary failure resolving 'mirrors.aliyun.com' W: Failed to fetch http://mirrors.aliyun.com/ubuntu/dists/xenial-security/InRelease Temporary failure resolving 'mirrors.aliyun.com' W: Some index files failed to download. They have been ignored, or old ones used instead.
(2)这个不太清楚
Step 6/18 : RUN apt-get install -y python3 python3-dev python3-pip nginx supervisor libmysqlclient-dev redis-server libssl-dev libffi-dev && rm -rf /var/lib/apt/lists/* ---> Running in c8e4f8654ce8 Reading package lists... Building dependency tree... Reading state information... E: Unable to locate package python3 E: Unable to locate package python3-dev
应该是网络问题,如果是国外服务器,可以考虑把Dockerfile里面换阿里云源的那几行删掉再试试。