docker 创建镜像
docker:/root# docker search centos
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
centos The official build of CentOS. 2028 [OK]
jdeathe/centos-ssh CentOS-6 6.7 x86_64 / CentOS-7 7.2.1511 x8... 17 [OK]
jdeathe/centos-ssh-apache-php CentOS-6 6.7 x86_64 / Apache / PHP / PHP M... 14 [OK]
million12/centos-supervisor Base CentOS-7 with supervisord launcher, h... 9 [OK]
blalor/centos Bare-bones base CentOS 6.5 image 8 [OK]
nimmis/java-centos This is docker images of CentOS 7 with dif... 7 [OK]
torusware/speedus-centos Always updated official CentOS docker imag... 7 [OK]
nickistre/centos-lamp LAMP on centos setup 3 [OK]
nathonfowlie/centos-jre Latest CentOS image with the JRE pre-insta... 3 [OK]
centos/mariadb55-centos7 3 [OK]
consol/sakuli-centos-xfce Sakuli end-2-end testing and monitoring co... 2 [OK]
timhughes/centos Centos with systemd installed and running 1 [OK]
lighthopper/orientdb-centos A Dockerfile for creating an OrientDB imag... 1 [OK]
layerworx/centos CentOS container with etcd, etcdctl, confd... 1 [OK]
yajo/centos-epel CentOS with EPEL and fully updated 1 [OK]
pacur/centos-7 Pacur CentOS 7 1 [OK]
darksheer/centos Base Centos Image -- Updated hourly 1 [OK]
pacur/centos-6 Pacur CentOS 6 1 [OK]
softvisio/centos Centos 1 [OK]
ustclug/centos USTC centos 0 [OK]
blacklabelops/centos CentOS Base Image! Built and Updates Daily! 0 [OK]
jsmigel/centos-epel Docker base image of CentOS w/ EPEL installed 0 [OK]
lighthopper/openjdk-centos A Dockerfile for creating an OpenJDK image... 0 [OK]
grayzone/centos auto build for centos. 0 [OK]
januswel/centos yum update-ed CentOS image 0 [OK]
docker:/root# docker pull centos
latest: Pulling from centos
47d44cb6f252: Pull complete
6fdebd7b0eb5: Pull complete
a63aae4d216f: Pull complete
bb3d629a7cbc: Pull complete
Digest: sha256:381f21e4c7b3724c6f420b2bcfa6e13e47ed155192869a2a04fa10f944c78476
Status: Downloaded newer image for centos:latest docker:/root# docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
centos_with_net scan 92b2e7f857ae 28 minutes ago 269.5 MB
januswel/centos latest 088820de4929 12 days ago 198.3 MB
linux123 jj 088820de4929 12 days ago 198.3 MB
linux123 latest 088820de4929 12 days ago 198.3 MB
linux123 xxx123 088820de4929 12 days ago 198.3 MB
centos latest bb3d629a7cbc 12 days ago 196.6 MB docker:/root# docker run -itd centos /bin/bash
c0dfbb37f8415e2faa18a30d5f33d955d73fdbdfb2f4f62f72fa83775249816c 进入容器: docker exec -it januswel/centos /bin/bash docker:/root# docker exec -it c0dfbb37f841 /bin/bash
[root@c0dfbb37f841 /]#
[root@c0dfbb37f841 /]# cat /etc/redhat-release
CentOS Linux release 7.2.1511 (Core) 下载Centos 6.5版本: docker:/root# docker search centos docker:/root# docker run -itd blalor/centos /bin/bash
40d30fb0fc60d43a343e199db0df70104f70eac02a044f599208fe196c5da3b0 docker:/root# docker exec -it c0895b3b9477 /bin/bash bash-4.1# cat /etc/redhat-release
CentOS release 6.5 (Final)
bash-4.1# 创建Centos 6.5的镜像: 保存更改的镜像: docker:/root# docker commit -m "centos_with_nettools" -a "scan" c0895b3b9477 centos_6.5_net:scan
docker 创建镜像的更多相关文章
- Docker 创建镜像、修改、上传镜像
Docker 创建镜像.修改.上传镜像 –创建镜像有很多方法,用户可以从 Docker Hub 获取已有镜像并更新,也可以利用本地文件系统创建一个. 一.创建镜像 创建镜像有很多方法,用户可以从 Do ...
- Docker创建镜像以及私有仓库
Docker的安装及镜像.容器的基本操作详见博客https://blog.51cto.com/11134648/2160257下面介绍Docker创建镜像和创建私有仓库的方法,详细如下: 创建镜像 创 ...
- Docker创建镜像文件并在容器中运行
1.如何创建镜像文件 首先找到Docker ToolBox安装的路径,在路径下直接新建Dockerfile文件 在Dockerfile文件里写入的内容为: FROM docker/whalesay:l ...
- docker 创建镜像,并推送到私有仓库
创建镜像 创建 Dockerfile 镜像命名规则:registyr_url / namespace / depart / name : version 用这个规则创建的镜像,可直接推送到私有仓库 ...
- Docker - 创建镜像(二)
实际工作中,我们可能需要自己去创建一个docker镜像,下面给大家介绍如何创建docker镜像 1. 创建一个最简单的镜像 准备Dockerfile文件 [root@dockhost ~]# mkdi ...
- Docker创建镜像 并推拉Harbor
创建镜像 一.根据dockerfile创建镜像 文件详解 1.mkdir dockerfile/lib/centos7base/ 创建目录 2.创建Dockerfile vim Dockerfile ...
- docker创建镜像
手动创建: docker run -d -p mynginx:v2 nginx rpm -ivh http://mirrors.aliyun.com/epel/epel-release-latest- ...
- docker创建镜像及push镜像出错问题
docker build 出错 Got permission denied while trying to connect to the Docker daemon socket at unix:/ ...
- [容器]docker创建镜像
手动创建: docker run -d -p mynginx:v2 nginx rpm -ivh http://mirrors.aliyun.com/epel/epel-release-latest- ...
随机推荐
- HTML5 Mobile 适应移动端的屏幕<meta name='viewport' content='xxxx'>
网页手机wap2.0网页的head里加入下面这条元标签,在移动端的浏览器中页面将以原始大小显示,并不允许缩放. 加入 如下代码 即可自适应移动端的屏幕: <meta name="vie ...
- Leetcode 171 Excel Sheet Column Number python
题目: Given a column title as appear in an Excel sheet, return its corresponding column number. For ex ...
- Sql Server专题:SQL 经典实例
SQL 经典实例 1.实例表: Student(S#,Sname,Sage,Ssex) 学生表 S#:学号:Sname:学生姓名:Sage:学生年龄:Ssex:学生性别 Course(C#,Cname ...
- Bug 的严重性的定义参考
在代码测试中,通常一个 Bug 需要我们定义他们的优先级(即定义开发人员应该如何相应这个Bug) 和它的严重等级(即该 Bug 发生后对程序的影响). 专业的英文为 Priority -- 优先级:和 ...
- Excel导入到DataTable
1.前台代码 <asp:FileUpload ID="fupFiles" runat="server" /> <asp:Button ID=& ...
- c# 正则表达式对网页进行内容抓取
原文 c# 正则表达式对网页进行内容抓取 搜索引擎中一个比较重要的环节就是从网页中抽取出有效内容.简单来说,就是吧HTML文本中的HTML标记去掉,留下我们用IE等浏览器打开HTML文档看到的部分(我 ...
- cf467A George and Accommodation
A. George and Accommodation time limit per test 1 second memory limit per test 256 megabytes input s ...
- 方差var,标准差
wiki摘录如下(红色字体是特别标注的部分): 方差:http://zh.wikipedia.org/wiki/%E6%96%B9%E5%B7%AE 方差 变异量(数)(Variance),应用数学里 ...
- HDU1181 变形课 (回溯法)
变形课 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/65536 K (Java/Others)Total Submis ...
- CentOS7 lamp安装 centoOS6 lamp
快速lamp安装 How To Install Linux, Apache, MySQL, PHP (LAMP) stack On CentOS 7 Introduction A "LAMP ...