docker-hub OFFICIAL AUTOMATED images
[root@db-172-16-3-221 ~]# docker search postgres
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
postgres The PostgreSQL object-relational database ... 273 [OK]
paintedfox/postgresql A docker image for running Postgresql. 45 [OK]
helmi03/docker-postgis PostGIS 2.1 in PostgreSQL 9.3 19 [OK]
The Official and Automated build statuses. Official repositories are built and maintained by the Stackbrew project, and Automated repositories are Automated Builds that allow you to validate the source and content of an image.
Docker Official Images指docker标准库, 由docker 官方建立. 用户建立的image则会有userid的prefix.
We've reviewed the images available to use and we decided to use the training/sinatra image. So far we've seen two types of images repositories, images like ubuntu, which are called base or root images. These base images are provided by Docker Inc and are built, validated and supported. These can be identified by their single word names.We've also seen user images, for example the training/sinatra image we've chosen. A user image belongs to a member of the Docker community and is built and maintained by them. You can identify user images as they are always prefixed with the user name, here training, of the user that created them
automated builds 则是通过代码版本管理网站结合docker hub提供的接口生成的, 例如github, bitbucket,
Automated Builds
Automated Builds automate the building and updating of images from GitHub or BitBucket, directly on Docker Hub. It works by adding a commit hook to your selected GitHub or BitBucket repository, triggering a build and update when you push a commit.To setup an Automated Build
Create a Docker Hub account and login.
Link your GitHub or BitBucket account through the "Link Accounts" menu.
Configure an Automated Build.
Pick a GitHub or BitBucket project that has a Dockerfile that you want to build.
Pick the branch you want to build (the default is the master branch).
Give the Automated Build a name.
Assign an optional Docker tag to the Build.
Specify where the Dockerfile is located. The default is /.
Once the Automated Build is configured it will automatically trigger a build and, in a few minutes, you should see your new Automated Build on the Docker Hub Registry. It will stay in sync with your GitHub and BitBucket repository until you deactivate the Automated Build.If you want to see the status of your Automated Builds, you can go to your Automated Builds page on the Docker Hub, and it will show you the status of your builds and their build history.Once you've created an Automated Build you can deactivate or delete it. You cannot, however, push to an Automated Build with the docker push command. You can only manage it by committing code to your GitHub or BitBucket repository.You can create multiple Automated Builds per repository and configure them to point to specificDockerfile's or Git branches.Build Triggers
Automated Builds can also be triggered via a URL on Docker Hub. This allows you to rebuild an Automated build image on demand.
例如从docker hub pull一个官方image.
[root@db-172-16-3-221 lib]# docker pull postgres
[root@db-172-16-3-221 lib]# docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
postgres 9.4-beta3 68b6ddf9ca08 42 hours ago 213.6 MB
postgres 9.4 68b6ddf9ca08 42 hours ago 213.6 MB
postgres 9.3 935836384c52 42 hours ago 212.9 MB
postgres 9 935836384c52 42 hours ago 212.9 MB
postgres 9.3.5 935836384c52 42 hours ago 212.9 MB
postgres latest 935836384c52 42 hours ago 212.9 MB
postgres 9.2 2a9ab0b9fa56 42 hours ago 212.7 MB
postgres 9.2.9 2a9ab0b9fa56 42 hours ago 212.7 MB
postgres 9.1.14 ee60947f6805 42 hours ago 212.1 MB
postgres 9.1 ee60947f6805 42 hours ago 212.1 MB
postgres 9.0.18 f29be88283f6 42 hours ago 211.5 MB
postgres 9.0 f29be88283f6 42 hours ago 211.5 MB
postgres 8 c57c14beb696 42 hours ago 211 MB
postgres 8.4 c57c14beb696 42 hours ago 211 MB
postgres 8.4.22 c57c14beb696 42 hours ago 211 MB
postgres 9.4-beta2 bf872395e1d4 2 weeks ago 213.6 MB
使用inspect查看image的内容
[root@db-172-16-3-221 lib]# docker inspect postgres:9.3.5
[{"Architecture": "amd64","Author": "","Comment": "","Config": {"AttachStderr": false,"AttachStdin": false,"AttachStdout": false,"Cmd": ["postgres"],"CpuShares": 0,"Cpuset": "","Domainname": "","Entrypoint": ["/docker-entrypoint.sh"],"Env": ["PATH=/usr/lib/postgresql/9.3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin","LANG=en_US.utf8","PG_MAJOR=9.3","PG_VERSION=9.3.5-1.pgdg70+1","PGDATA=/var/lib/postgresql/data"],"ExposedPorts": {"5432/tcp": {}},"Hostname": "39d2c877bc4f","Image": "15d042248df39ca896223c9e75f0f4541996f2b52030f1f8e6619cf18f77e395","Memory": 0,"MemorySwap": 0,"NetworkDisabled": false,"OnBuild": [],"OpenStdin": false,"PortSpecs": null,"StdinOnce": false,"Tty": false,"User": "","Volumes": {"/var/lib/postgresql/data": {}},"WorkingDir": ""},"Container": "977043cde52cd15e070d71a67fbd8e2ec908af49123f3f773f71cda2061e9f44","ContainerConfig": {"AttachStderr": false,"AttachStdin": false,"AttachStdout": false,"Cmd": ["/bin/sh","-c","#(nop) CMD [postgres]"],"CpuShares": 0,"Cpuset": "","Domainname": "","Entrypoint": ["/docker-entrypoint.sh"],"Env": ["PATH=/usr/lib/postgresql/9.3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin","LANG=en_US.utf8","PG_MAJOR=9.3","PG_VERSION=9.3.5-1.pgdg70+1","PGDATA=/var/lib/postgresql/data"],"ExposedPorts": {"5432/tcp": {}},"Hostname": "39d2c877bc4f","Image": "15d042248df39ca896223c9e75f0f4541996f2b52030f1f8e6619cf18f77e395","Memory": 0,"MemorySwap": 0,"NetworkDisabled": false,"OnBuild": [],"OpenStdin": false,"PortSpecs": null,"StdinOnce": false,"Tty": false,"User": "","Volumes": {"/var/lib/postgresql/data": {}},"WorkingDir": ""},"Created": "2014-10-21T05:54:39.659381225Z","DockerVersion": "1.2.0","Id": "935836384c524aafc0ac1c05246002c9c93343f0b4283a34e77a5f92f97f9a7c","Os": "linux","Parent": "15d042248df39ca896223c9e75f0f4541996f2b52030f1f8e6619cf18f77e395","Size": 0
}
docker下载的image会放到/var/lib/docker目录中(默认如此, 如果启动docker时使用-g指定其他目录的话, 那么会放到其他目录)
[root@db-172-16-3-221 docker]# ll
total 44
drwx------ 2 root root 4096 Oct 22 10:59 containers
drwx------ 5 root root 4096 Oct 22 11:00 devicemapper
drwx------ 3 root root 4096 Oct 22 10:59 execdriver
drwx------ 102 root root 12288 Oct 23 07:42 graph
drwx------ 2 root root 4096 Oct 22 10:59 init
-rw-r--r-- 1 root root 5120 Oct 22 10:59 linkgraph.db
-rw------- 1 root root 1223 Oct 23 07:42 repositories-devicemapper
drwx------ 2 root root 4096 Oct 22 10:59 volumes
mkdir /data01/docker
ln -s /data01/docker /var/lib/
service docker start
docker-hub OFFICIAL AUTOMATED images相关推荐
- Docker Hub Automated Build with GitHub
Github授权给DockerHub 在Github中新建组织[首页->+号->New Organization] 配置DockerHub可以访问到此组织[首页头像->Setting ...
- Docker 使用 docker push 命令将镜像推送到 Docker Hub 服务器上
Docker 使用 docker push 命令将镜像推送到 Docker Hub 服务器上 DockerHub注册用户 请到官网注册账号,官网地址:https://hub.docker.com/ 在 ...
- Docker Hub公共镜像仓库的使用
创建账号并登陆这里是登陆入口 登陆账号 登陆进入之后里面目前仓库,现在去创建一个 下面我选的是公共仓库,别人也可以访问到 在服务器上登陆进来,进行上传镜像到仓库 [root@docker ~]# do ...
- docker 如何oush mysql_Docker镜像推送(push)到Docker Hub的实现
镜像构建成功后,只要有docker环境就可以使用,但必须将镜像推送到Docker Hub上去.我们之前创建的镜像不符合Docker Hub的tag要求,因为 在Docker Hub注册的用户名是boo ...
- 全新Docker Hub发布:提供查找、存储和共享容器镜像单一体验
Docker发布了一种新的Docker Hub体验,它将之前的Docker Store.Docker Cloud和Docker Hub融为一体,为用户提供了查找.存储和共享容器镜像的单一体验.现在,可 ...
- Docker(六)Docker Hub+Docker Registry
Docker Hub 提供了镜像托管服务,地址为https://hub.docker.com/ 利用Docker Hub用户可以搜索.创建.分享.管理镜像,一般有两大类:官方和用户自己上传镜像. 一. ...
- Docker Hub + Github 自动化构建docker镜像
自动创建(Automated Builds)功能对于需要经常升级镜像内程序来说,十分方便. 有时候,用户创建了镜像,安装了某个软件,如果软件发布新版本则需要手动更新镜像. 而自动创建允许用户通过Doc ...
- docker 国内镜像与 docker hub 镜像, docker-compose
目录 1. docker 国内镜像与 docker hub 镜像, docker-compose 1.1. 通过国内镜像安装 docker 1.1.1. Debian 1.1.2. RHEL 1.2. ...
- 《Docker快速入门(基础篇)》Docker Hub实用指南
在<Windows下安装Docker>一文末尾,体验了一下Hello World,其过程只需两步:拉取镜像.创建并运行容器.其中,拉取的镜像hello-world,就来自Docker Hu ...
最新文章
- “小米造车”终于尘埃落定,网络营销下“造车时代”终将到来
- HZOJ 斐波那契(fibonacci)
- ABAP 几个文件相关的函数
- 计算机栈是什么,什么是数据栈?——线性表
- Python 错误小结
- c语言 结构体声明和引用、,结构体的声明与自引用
- 20191221每日一句
- MTK modem编译
- html如何引入lrc文件,lrc文件怎么打开?lrc是什么文件?
- 启用计算机的快捷键,怎么设置计算机启动快捷键,电脑重启快捷键的设置方法(图文)...
- 详述 MySQL 中的行级锁、表级锁和页级锁
- 大数据和云计算技术周报(第101期)
- mySql 脏读,幻读,不可重复度与事务隔离级别
- 武汉新时标文化传媒有限公司短视频的类型
- Excel中身份证号码验证,那些不得不说的事
- JavaScript日期时间详解
- 每日一分享C语言代码(The first day)
- 计算机网络概述——计算机网络
- 解码北京冬奥沉浸式报道黑科技: 阿里云视频云「互动虚拟演播技术」
- matlab怎样编程形成软件_matlab是什么编程语言?matlab是编程语言吗
热门文章
- mysql中的left join用法 (及多条件查询
- 推荐九个数据可视化工具,快速生成可视化信息
- 官方确认:新增一所“双一流”大学!
- 关系数据库设计五大范式学习记录——<五>
- 汤道生对话亚马逊CTO:安全不只是技术,要从战略视角系统构建
- 计算机组成原理中dma是,《计算机组成原理》课程中“DMA方式”知识点的教学设计...
- ALtera DE2开发板学习03
- eclipse怎么恢复默认布局
- win10系统C盘瘦身记录
- 中国SSD产业突围有多难?除了技术“瓶颈”还有哪里挑战?