Sign inSign up

mengkevin/ubuntu

By mengkevin

Updated over 6 years ago

For user in China. 常用Linux Docker镜像 国内加速版(替换国内源)

Image
0

162

mengkevin/ubuntu repository overview

常用Linux Docker镜像 国内加速版

在国内使用使用 docker 时,常因为墙的原因,下载速度很慢,甚至出现连接中断情况,导致镜像构建失败。

解决办法之一就是 将基础操作系统镜像的下载源修改为国内镜像源,实现进行加速。

正因为如此,我统一构建了常用的 linux 镜像中的源为 国内清华大学的镜像源。具体如下:

ubuntudebianpythonanaconda

1. Ubuntu

Ubuntu 提供四个修改为清华源后的镜像版本dockerhub

  • a. Ubuntu 18.04:ubuntu:18.04
  • b. Ubuntu 16.04:ubuntu:16.04
  • c. Ubuntu 14.04:ubuntu:14.04
  • d. Ubuntu 12.04:ubuntu:12.04

2. Debian

Debian 提供四个修改为清华源后的镜像版本 dockerhub

  • a. Debian10-buster:debian:buster
  • b. Debian10-buster-slim:debian:buster-slim
  • c. Debian9-stretch:debian:stretch;`
  • d. Debian9-stretch-slim:debian:stretch-slim;`

3. CentOS

CentOS 在安装时会自动选择速度最快的镜像位置下载,所以无需加速。:)

[root@df1663587f34 /]# yum install wget
Loaded plugins: fastestmirror, ovl
Determining fastest mirrors
 * base: ftp.sjtu.edu.cn
 * extras: mirrors.163.com
 * updates: ftp.sjtu.edu.cn

4. Python

python 提供11个修改为清华源后的镜像版本、以及pip阿里云镜像版本dockerhub

  • a. python 2.7: 2.7-slim-buster2.7-buster
  • b. python 3.9: 3.9-rc-buster
  • c. python 3.8: 3.8-slim-buster3.8-buster
  • d. python 3.7: 3.7-slim-buster3.7-buster
  • e. python 3.6: 3.6-slim-buster3.6-buster
  • f. python 3.5: 3.5-slim-buster3.5-buster

5. Anaconda

anaconda 提供1个修改为清华源后的镜像版本、pip阿里云镜像和conda 清华镜像版本 dockerhub

  • a. 对应 Anaconda3-2019.10-Linux-x86_64 版本。 标签:2019

6. Miniconda

与 Anaconda 类似, 提供1个修改为清华源后的镜像版本、pip阿里云镜像和conda 清华镜像版本 dockerhub miniconda3: 标签: latest;4.7.12

构建与测试

构建与测试方法如下:

构建
cd 18.04 LTS
docker build -t mengkevin/ubuntu:18.04 .
测试
docker run --name test -it --rm  mengkevin/ubuntu:18.04
anaconda 启动
docker run -v $(pwd):/src/notebooks -p 8888:8888 -td mengkevin/anaconda:201910

Tag summary

Content type

Image

Digest

Size

28 MB

Last updated

over 6 years ago

docker pull mengkevin/ubuntu:18.04