Docker下使用daocloud镜像加速(基于Centos6)
Docker加速器使用时不需要任何额外操作。就像这样下载官方Ubuntu镜像实际操作(添加镜像源):
在 /etc/sysconfig/docker下添加两条命令
other_args="--registry-mirror=http://74ecfe5d.m.daocloud.io"
OPTIONS='--registry-mirror=
http://74ecfe5d.m.daocloud.io' 重启Docker服务,让配置生效:
# /etc/init.d/docker restart
Stopping docker:
Starting docker:
# echo $?
0
测试查找ubuntu镜像,并下载一个pull镜像:
# docker search ubuntu NAME DESCRIPTION STARS OFFICIAL AUTOMATED
ubuntu Ubuntu is a Debian-based Linux operating s... 3234
ubuntu-upstart Upstart is an event-based replacement for ... 60
torusware/speedus-ubuntu Always updated official Ubuntu docker imag... 25
ubuntu-debootstrap debootstrap --variant=minbase --components... 25
tleyden5iwx/ubuntu-cuda Ubuntu 14.04 with CUDA drivers pre-installed 20
rastasheep/ubuntu-sshd Dockerized SSH service, built on top of of... 20
nickistre/ubuntu-lamp-wordpress LAMP on Ubuntu with wp-cli installed 4
nuagebec/ubuntu Simple always updated Ubuntu docker images... 4
nimmis/ubuntu This is a docker images different LTS vers... 3
maxexcloo/ubuntu Docker base image built on Ubuntu with Sup... 2
nickistre/ubuntu-lamp LAMP server on Ubuntu 2
densuke/ubuntu-jp-remix Ubuntu Linuxの日本語remix風味です 2
sassmann/ubuntu-steam Steam based on Ubuntu 1
seetheprogress/ubuntu Ubuntu image provided by seetheprogress us... 1
darksheer/ubuntu Base Ubuntu Image -- Updated hourly 1
teamrock/ubuntu TeamRock's Ubuntu image configured with AW... 0
konstruktoid/ubuntu Ubuntu base image 0
webhippie/ubuntu Docker images for ubuntu 0
esycat/ubuntu Ubuntu LTS 0
rallias/ubuntu Ubuntu with the needful 0
lynxtp/ubuntu https://github.com/lynxtp/docker-ubuntu 0
avatao/ubuntu Ubuntu for challenges 0
ubuntucore/jenkins-ubuntu Jenkins image based on ubuntu 0
zoni/ubuntu 0
jianhuiz/ubuntu-docker ubuntu images that runs in nova-docker 0
# docker pull ubuntu Pulling repository ubuntu
c29e52d44f69: Download complete
5549154b6b00: Download complete
dbcf09c742a7: Download complete
40964da1bf47: Download complete
Status: Downloaded newer image for ubuntu:latest
查看镜像信息:
# docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
ubuntu latest c29e52d44f69 3 days ago 187.9 MB
wordpress latest 62a9acf5fc2a 9 days ago 517.3 MB
nginx latest bbb75b846e7b 9 days ago 134.5 MB
redis latest 34ca6ac180ad 3 weeks ago 151.2 MB
mongo latest ad74160b3443 3 weeks ago 317.4 MB
daocloud.io/library/python latest a2db1214d015 3 weeks ago 689.1 MB
debian latest 5eb1402f0414 3 weeks ago 125.1 MB
centos latest 60e65a8e4030 8 weeks ago 196.6 MB
joedval/stress latest 7eb627cb08a2 11 weeks ago 214.9 MB
lemonbar/centos6-ssh latest b78c71c001db 18 months ago 296.9 MB
页:
[1]