Docker+shipyard测试1测试拓扑:2测试目的:在两台Centos7服务器上安装docker程序,测试镜像封装从镜像运行两个apache应用,测试服务访问安装shipyard容器管理程序,测试管理两台主机及container3测试过程3.1Linux桥接若已启用docker,先停止docker服务和移除docker0网桥:#Sto..
分类:
其他好文 时间:
2014-08-08 16:29:16
阅读次数:
389
1. 获取最近运行容器的id这是我们经常会用到的一个操作,按照官方示例,你可以这样做(环境ubuntu):$ID=$(dockerrunubuntuechohelloworld)helloworld$dockercommit$IDhelloworldfd08a884dc79这种方式在编写脚本的时候很...
分类:
其他好文 时间:
2014-08-08 15:36:06
阅读次数:
332
系统版本:centos6.5内核版本:2.6.32-358.el6.x86_64yum安装LAMP环境;yuminstall-ygccgcc-c++httpdhttpd-develmysqlmsql-servermysql-develphpphp-mysqlphp-commonphp-gdphp-mbstringphp-mcrtptphp-develphp-xmlphp-bcmathlibcurl-develnet-snmp-devel2.添加用户及组;groupa..
分类:
其他好文 时间:
2014-08-08 02:08:46
阅读次数:
423
正常运行以下命令sudo docker run --rm busybox echo helloworld/var/log/upstart/docker.log 日志如下:2014/08/07 00:12:02 POST /v1.13/containers/create[339dd1d9] +job ...
分类:
其他好文 时间:
2014-08-07 15:40:20
阅读次数:
333
Docker使用Dockerfile创建支持ssh服务自启动的容器镜像...
分类:
其他好文 时间:
2014-08-07 09:51:40
阅读次数:
228
docker是一个非常好用的虚拟化工具。下面给出建立私有docker hub的方法。docker将私有hub的环境打包在registry image中执行指令:docker run -p 5000:5000 registry这条指令启动一个基于registry image的cotainer。并将ho...
分类:
其他好文 时间:
2014-08-06 18:13:21
阅读次数:
274
1. 这里使用的centos作为容器,所以首先下载centos的images# sudo docker pull centos2. 下载后运行一个centos的容器,这里使用centos6作为我测试的容器# sudo docker run --name=centos-ssh -i -t centos:centos6 /bin/bash3. 安装openssh-server服务软件包# yum in...
分类:
其他好文 时间:
2014-08-06 08:26:01
阅读次数:
294
提出问题:zabbix对文件系统的监控是通过LLD实现的,zabbix首先通过Discoveryrule发现所有的文件系统名称和类型,如下:shell#zabbix_get-s127.0.0.1-kvfs.fs.discovery
{
"data":[
{
"{#FSNAME}":"/",
"{#FSTYPE}":"rootfs"
},
{
"{#FSNAME}":"/proc",
"{#FSTYPE}":"proc"
},
..
分类:
其他好文 时间:
2014-08-05 23:00:01
阅读次数:
379
tail-f/var/log/neutron/dhcp-agent.logBydefault,CentOS6.4doesnotsupportnetworknamespaces.Ifonewantstotestthenewvirtualizationplatforms(Docker,OpenStack,&co…)onaCentOSserver,allfeatureswon’tbeavailable.ForOpenStackforexample,Neutronwon’tworkasexpected,..
分类:
Web程序 时间:
2014-08-05 11:35:39
阅读次数:
1996
操作系统:vmcentos6.5容器:docker前提:可以ssh的docker镜像已经创建第一种方法,手动创建1.在宿主机上生成新的密钥和公钥###ssh-keygen[-q][-bbits]-ttype[-Nnew_passphrase][-Ccomment][-foutput_keyfile]
#ssh-keygen的具体用法参考官方文档
ssh-keygen-q-N""-tdsa-f/root..
分类:
其他好文 时间:
2014-08-04 18:21:09
阅读次数:
326