博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
【windows docker & centos 6 .7搭建】
阅读量:7039 次
发布时间:2019-06-28

本文共 1766 字,大约阅读时间需要 5 分钟。

一时兴起,搭建windows 下的docker。

1、下载了dockertoolsbox
2、Gitbash 下运行,修改了start.sh里面的环境变量。(如果配置了就不需要手动修改了)
3、下载镜像
4、gitbash 里面运行,docker images

$ docker imagestime="2017-03-16T13:49:07+08:00" level=info msg="Unable to use system certificate pool: crypto/x509: system root pool is not available on Windows"REPOSITORY                    TAG                 IMAGE ID            CREATED             SIZEhub.c.163.com/public/centos   6.7-tools           b2ab0ed558bb        3 weeks ago         602 MBhub.c.163.com/public/centos   latest              997f0ed97903        12 months ago       442 MBhub.c.163.com/public/ubuntu   16.04               70b70c987e8f        13 months ago       224 MB

5、进入centos 6.7-tools,

$ docker run -i -t hub.c.163.com/public/centos:6.7-tools bash

time="2017-03-16T13:50:41+08:00" level=info msg="Unable to use system certificate pool: crypto/x509: system root pool is not available on Windows"the input device is not a TTY.  If you are using mintty, try prefixing the command with 'winpty'

报错,需要在命令前面加 winpty ,即: winpty docker run -i -t hub.c.163.com/public/centos:6.7-tools bash

()
6、winpty docker run -i -t hub.c.163.com/public/centos:6.7-tools bash

即进入centos。

查看linux 版本:

---1-- [root@9074c4ac74e0 /]# cat /proc/version
Linux version 4.4.52-boot2docker (root@ed11f485244a) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 SMP Wed Mar 1 23:41:46 UTC 2017
---2-- [root@07412bb23ddd /]# lsb_release -a
LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:g
raphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 6.7 (Final)
Release: 6.7
Codename: Final
---3-- [root@9074c4ac74e0 /]# cat /etc/issue
CentOS release 6.7 (Final)
Kernel r on an m

so,centos已经在docker安装完毕。

转载地址:http://qffal.baihongyu.com/

你可能感兴趣的文章
筛素数法小结
查看>>
mysql利用存储过程批量插入数据
查看>>
Android学习路线(六)为Android应用加入ActionBar
查看>>
不用锁表,没有异常:在高并发网络中高效的更新数据库数据的方式<转>
查看>>
[Step By Step]SAP HANA PAL 数据处理四分位间距检测Inter-quartile Range Test范例IQRTEST
查看>>
解决eclipse中java代码注释变成乱码的问题
查看>>
字符串的排列
查看>>
C#快速排序
查看>>
快照隔离(Snapshot Isolation)简单介绍和例子
查看>>
MoinMoin wiki 服务器搭建 与尝试
查看>>
线程wait()和sleep()的区别
查看>>
wordpress伪静态的原理
查看>>
Error saving your changes: Description control characters are not allowed
查看>>
wordpress向一个页面POST数据,出现404页面访问不了
查看>>
C++ Exercises(八)
查看>>
CodeSmith模板引擎系列一
查看>>
[CareerCup] 8.9 An In-memory File System 内存文件系统
查看>>
[Spark][Python][DataFrame][SQL]Spark对DataFrame直接执行SQL处理的例子
查看>>
9.2. Private key generation
查看>>
24.2. CentOS 安装
查看>>