Docker下使用daocloud镜像加速(基于Centos6)
Docker加速器使用時不需要任何額外操作。就像這樣下載官方Ubuntu鏡像
實際操作(添加鏡像源):
在 /etc/sysconfig/docker下添加兩條命令
| 1 2 3 | other_args="--registry-mirror=http://74ecfe5d.m.daocloud.io" OPTIONS='--registry-mirror= http://74ecfe5d.m.daocloud.io' |
重啟Docker服務,讓配置生效:
| 1 2 3 4 5 | [root@docker?~]#?/etc/init.d/docker?restart Stopping?docker:???????????????????????????????????????????[??OK??] Starting?docker:????????????????????????????????????[??OK??] [root@docker?~]#?echo?$? 0 |
測試查找ubuntu鏡像,并下載一個pull鏡像:
| 1 | [root@docker?~]#?docker?search?ubuntu |
NAME????????????????????????????? DESCRIPTION???????????????????????????????????? STARS???? OFFICIAL?? AUTOMATED
ubuntu??????????????????????????? Ubuntu is a Debian-based Linux operating s...?? 3234????? [OK]???????
ubuntu-upstart??????????????????? Upstart is an event-based replacement for ...?? 60??????? [OK]???????
torusware/speedus-ubuntu????????? Always updated official Ubuntu docker imag...?? 25?????????????????? [OK]
ubuntu-debootstrap??????????????? debootstrap --variant=minbase --components...?? 25??????? [OK]???????
tleyden5iwx/ubuntu-cuda?????????? Ubuntu 14.04 with CUDA drivers pre-installed??? 20?????????????????? [OK]
rastasheep/ubuntu-sshd??????????? Dockerized SSH service, built on top of of...?? 20?????????????????? [OK]
nickistre/ubuntu-lamp-wordpress?? LAMP on Ubuntu with wp-cli installed??????????? 4??????????????????? [OK]
nuagebec/ubuntu?????????????????? Simple always updated Ubuntu docker images...?? 4??????????????????? [OK]
nimmis/ubuntu???????????????????? This is a docker images different LTS vers...?? 3??????????????????? [OK]
maxexcloo/ubuntu????????????????? Docker base image built on Ubuntu with Sup...?? 2??????????????????? [OK]
nickistre/ubuntu-lamp???????????? LAMP server on Ubuntu?????????????????????????? 2??????????????????? [OK]
densuke/ubuntu-jp-remix?????????? Ubuntu Linuxの日本語remix風味です?????????????????????? 2??????????????????? [OK]
sassmann/ubuntu-steam????????????? Steam based on Ubuntu????????????????????????? 1??????????????????? [OK]
seetheprogress/ubuntu???????????? Ubuntu image provided by seetheprogress us...?? 1??????????????????? [OK]
darksheer/ubuntu????????????????? Base Ubuntu Image -- Updated hourly???????????? 1??????????????????? [OK]
teamrock/ubuntu?????????????????? TeamRock's Ubuntu image configured with AW...?? 0??????????????????? [OK]
konstruktoid/ubuntu?????????????? Ubuntu base image?????????????????????????????? 0??????????????????? [OK]
webhippie/ubuntu????????????????? Docker images for ubuntu??????????????????????? 0??????????????????? [OK]
esycat/ubuntu???????????????????? Ubuntu LTS????????????????????????????????????? 0??????????????????? [OK]
rallias/ubuntu??????????????????? Ubuntu with the needful???????????????????????? 0??????????????????? [OK]
lynxtp/ubuntu???????????????????? https://github.com/lynxtp/docker-ubuntu???????? 0??????????????????? [OK]
avatao/ubuntu???????????????????? Ubuntu for challenges?????????????????????????? 0??????????????????? [OK]
ubuntucore/jenkins-ubuntu???????? Jenkins image based on ubuntu?????????????????? 0??????????????????? [OK]
zoni/ubuntu?????????????????????????????????????????????????????????????????????? 0??????????????????? [OK]
jianhuiz/ubuntu-docker??????????? ubuntu images that runs in nova-docker????????? 0??????????????????? [OK]
| 1 | [root@docker?~]#?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
查看鏡像信息:
| 1 2 3 4 5 6 7 8 9 10 11 12 | [root@docker?~]#?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?? |
本文轉自 冰凍vs西瓜 51CTO博客,原文鏈接:http://blog.51cto.com/molewan/1743799,如需轉載請自行聯系原作者
總結
以上是生活随笔為你收集整理的Docker下使用daocloud镜像加速(基于Centos6)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: tomcat集群redis配置sessi
- 下一篇: 2021上海企业办公文档加密软件怎么选?