4 docker仓库

本文涉及的产品
云数据库 RDS MySQL Serverless,0.5-2RCU 50GB
云数据库 MongoDB,通用型 2核4GB
简介:
仓库是集中存放镜像的地方

例如:
搭建的私有仓库地址:
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创建并维护的

docker pool是国内专业的docker技术社区

地址:http://dockerpool.com


本文转自 TtrToby 51CTO博客,原文链接:http://blog.51cto.com/freshair/1958346


相关实践学习
MongoDB数据库入门
MongoDB数据库入门实验。
快速掌握 MongoDB 数据库
本课程主要讲解MongoDB数据库的基本知识,包括MongoDB数据库的安装、配置、服务的启动、数据的CRUD操作函数使用、MongoDB索引的使用(唯一索引、地理索引、过期索引、全文索引等)、MapReduce操作实现、用户管理、Java对MongoDB的操作支持(基于2.x驱动与3.x驱动的完全讲解)。 通过学习此课程,读者将具备MongoDB数据库的开发能力,并且能够使用MongoDB进行项目开发。   相关的阿里云产品:云数据库 MongoDB版 云数据库MongoDB版支持ReplicaSet和Sharding两种部署架构,具备安全审计,时间点备份等多项企业能力。在互联网、物联网、游戏、金融等领域被广泛采用。 云数据库MongoDB版(ApsaraDB for MongoDB)完全兼容MongoDB协议,基于飞天分布式系统和高可靠存储引擎,提供多节点高可用架构、弹性扩容、容灾、备份回滚、性能优化等解决方案。 产品详情: https://www.aliyun.com/product/mongodb
相关文章
|
4月前
|
Docker 容器
宝塔docker添加仓库
宝塔docker添加仓库
499 0
|
6月前
|
Linux 网络安全 数据安全/隐私保护
手把手教你使用Docker部署Gitlab仓库
手把手教你使用Docker部署Gitlab仓库
151 0
|
6月前
|
安全 应用服务中间件 数据安全/隐私保护
企业实战(5) Docker私有镜像仓库Harbor的部署与使用详解
企业实战(5) Docker私有镜像仓库Harbor的部署与使用详解
235 0
|
6月前
|
存储 安全 持续交付
Docker 仓库与注册表: 构建可靠的容器镜像生态系统
Docker 仓库与注册表: 构建可靠的容器镜像生态系统
200 0
|
6月前
|
存储 Kubernetes 持续交付
Docker 核心概念深度解析:探索容器、镜像和仓库在Docker生态系统中的重要作用和 应用
Docker 核心概念深度解析:探索容器、镜像和仓库在Docker生态系统中的重要作用和 应用
130 0
|
4月前
|
Cloud Native 安全 应用服务中间件
云原生|docker本地仓库的搭建(简易可快速使用的本地仓库)(修订版)
云原生|docker本地仓库的搭建(简易可快速使用的本地仓库)(修订版)
132 0
|
1月前
|
网络协议 网络安全 Docker
docker离线搭建仓库
docker离线搭建仓库
37 4
|
5月前
|
Cloud Native 数据安全/隐私保护 Docker
微服务轮子项目(41) -Docker私有镜像仓库
微服务轮子项目(41) -Docker私有镜像仓库
74 0
|
5月前
|
Ubuntu 数据安全/隐私保护 Docker
|
7月前
|
网络安全 开发工具 git
Docker部署gogs仓库
Docker部署gogs仓库