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
(1) 重启后永久性生效:开启: systemctl enable iptables.service'.ln -s '/usr/lib/systemd/system/iptables.service' '/etc/systemd/system/basic.target.wants/iptables....
分类:
系统相关 时间:
2014-08-06 08:23:21
阅读次数:
863
首先说下自己的搭建环境。RedHat6.4系统nagios-4.0.7。关闭selinux和iptables服务1,准备工作,安装好nagios所需要的软件ApachePHPGCCcompilerGDdevelopmentlibrariesyuminstallhttpdphpgccglibcglibc-commongdgd-devel2,创建nagios使用的账号和组,首先要切换成管理员账号[ro..
分类:
移动开发 时间:
2014-08-05 22:54:11
阅读次数:
295
概述iptables是一种运行在linux下的防火墙组件,下面的介绍可以快速的学习iptables的入门使用。特点(重要)它的工作逻辑分为链、表、规则三层结构。数据包通过的时候,在对应表中,规则从上向下匹配,匹配到即跳出,后续规则忽略。常用于过滤数据包和转发数据包(代理服务器)。工作方式基于IP 端...
分类:
系统相关 时间:
2014-08-05 13:56:29
阅读次数:
340
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
CentOS 配置防火墙操作实例(启、停、开、闭端口): ? 注:防火墙的基本操作命令: 查询防火墙状态: [root@localhost ~]# service ? iptables status<回车> ? 停止防火墙: [root@localhost ~]# service ? ip...
分类:
其他好文 时间:
2014-08-04 21:50:38
阅读次数:
261
操作系统: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
1. 查看docker信息(version、info)
# 查看docker版本
$docker version
# 显示docker系统的信息
$docker info
2. 对image的操作(search、pull、images、rmi、history)
# 检索image
$docker search image_name
# 下载image
$docker pull ...
分类:
其他好文 时间:
2014-08-04 14:19:37
阅读次数:
224