设为首页 收藏本站
查看: 649|回复: 0

[经验分享] docker仓库

[复制链接]
累计签到:1 天
连续签到:1 天
发表于 2017-8-23 09:31:32 | 显示全部楼层 |阅读模式
仓库是集中存放镜像的地方

例如:
搭建的私有仓库地址:
192.168.89.200/ubuntu
192.168.89.200/centos

ip地址是注册服务器地址,ubuntu是仓库名
同一个注册服务器地址可以有多个不同的仓库,每个仓库又有不同的镜像

2、仓库又分为公有仓库和私有仓库

3、命令行登录docker官方维护的公有仓库()
https://hub.docker.com/
前提是您必须提前注册有账户名和密码


root@docker-test:~# docker login
Username (tantianran): tantianran    #输入用户名和密码
WARNING: login credentials saved in /root/.dockercfg.    #这个文件是保存用户名和密码,密码是加密后的
Login Succeeded
root@docker-test:~#


4、登录之后,就可以非常方便的用docker search命令来搜索官方仓库中的镜像

5、例如搜索包含centos关键字的所有镜像
root@docker-test:~# docker search centos
NAME                           DESCRIPTION                                     STARS     OFFICIAL   AUTOMATED
centos                         The official build of CentOS.                   3562      [OK]      
jdeathe/centos-ssh             CentOS-6 6.9 x86_64 / CentOS-7 7.3.1611 x8...   81                   [OK]
tutum/centos                   Simple CentOS docker image with SSH access      33                  
kinogmt/centos-ssh             CentOS with SSH                                 16                   [OK]
centos/postgresql-94-centos7   PostgreSQL 9.4 SQL database server              11                  
centos/mysql-57-centos7        MySQL 5.7 SQL database server                   8                    
centos/php-56-centos7          PHP 5.6 platform for building and running ...   7                    
centos/python-35-centos7       Python 3.5 platform for building and runni...   5                    
centos/mongodb-26-centos7      MongoDB 2.6 NoSQL database server               4                    
centos/mysql-56-centos7        MySQL 5.6 SQL database server                   4                    
darksheer/centos               Base Centos Image -- Updated hourly             3                    [OK]
centos/php-70-centos7          PHP 7.0 platform for building and running ...   3                    
centos/redis                   Redis built for CentOS                          3                    [OK]
centos/ruby-23-centos7         Ruby 2.3 platform for building and running...   3                    
centos/python-27-centos7       Python 2.7 platform for building and runni...   2                    
centos/nginx-18-centos7        Nginx 1.8 server and a reverse proxy serve...   2                    
centos/python-34-centos7       Python 3.4 platform for building and runni...   2                    
centos/mongodb-32-centos7      MongoDB 3.2 NoSQL database server               2                    
centos/httpd-24-centos7        Apache HTTP 2.4 Server                          2                    
centos/ruby-22-centos7         Ruby 2.2 platform for building and running...   1                    
centos/nodejs-4-centos7        NodeJS 4 platform for building and running...   1                    
blacklabelops/centos           CentOS Base Image! Built and Updates Daily!     1                    [OK]
smartentry/centos              centos with smartentry                          0                    [OK]
centos/mariadb-101-centos7     MariaDB 10.1 SQL Database Server Docker image   0                    
pivotaldata/centos             Base centos, freshened up a little with a ...   0                    
root@docker-test:~#

注意:
官方镜像资源分为两类
1、单个名字命名的(例如centos),是属于基础或根镜像,一般都是官方维护的镜像
2、命令方式为:tutum/centos 这种镜像是由dockerhub用户tutum创建并维护的



运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-403363-1-1.html 上篇帖子: docker容器 下篇帖子: docker仓库-创建和使用私有仓库
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表