共7条回复
楼长
·
董一凡
回复于 2017年08月18日
很好的东西,网络问题,在国内用的很郁闷。我花了两天时间才把 tensorflow 的官方镜像下下来。
5楼
·
6楼
·
tinyfool
回复于 2017年08月21日
5楼 @董一凡 docker里面连代理需要把主机的端口给弄过去。不过犯不着,我在docker里面apt-get设置的也是国内的镜像服务器
我的一个Dockfile
FROM nginx
COPY sources.list /etc/apt/sources.list
RUN apt-get clean && apt-get update && apt-get install -y --allow-unauthenticated curl && rm -rf /var/lib/apt/lists/*
HEALTHCHECK --interval=5s --timeout=3s
CMD curl -fs http://localhost/ || exit 1
阿里的apt-get sources.list
deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse