所有 docker 操作都需要 root 权限,需要加 sudo: docker search gitlab 搜索服务镜像(image),挑选有 TRUSTED 标示的,相对好一些。 docker pull NAME 下载相应镜像,由于 index.docker.io 被墙,需要梯子,下载...
分类:
其他好文 时间:
2014-12-08 15:56:10
阅读次数:
183
yum搭建lnmp环境(CentOS6)1.关闭防火墙[root@CentOS ~]# chkconfig iptables off2.关闭selinuxvi /etc/sysconfig/selinux//将SELINUX=enforcing修改为disabled然后重启生效3、配置CentOS ...
分类:
数据库 时间:
2014-12-08 11:58:46
阅读次数:
247
一、简介 Docker是一个开源的容器引擎,能提供虚机化,从而达到隔离应用,可移植到任意安装有Docker的机器上运行,这对开发者来说是一个极大的福音。 由于工作上原因,最近准备开始使用Docker(公司装Docker的时候,linux server内核版本太低,需要重新编译)。 本文主要讲解如何在Mac OSX上安装Docker。 Tips:由于Docker引擎是使用了特定于Linux......
分类:
系统相关 时间:
2014-12-07 12:37:59
阅读次数:
445
要创建自己的Docker镜像,最好的方法是使用Dockerfile文件,在使用过程中,由于国内的网络环境的问题,创建镜像的过程中可能因为需要下载的软件不能及时获得,可能造成创建的镜像出错。为解决这个问题,在编写Dockerfile时,可以通过RUN指令,把软件源的地址换成国内的,虽然这..
分类:
其他好文 时间:
2014-12-07 06:43:34
阅读次数:
249
安装docker最简单的方式? curl -s https://get.docker.io/ubuntu/ | sudo sh #?检测是否有https,如果没有就安装一个
if?[?!?-e?/usr/lib/apt/methods/https?];?then
apt-get?update
apt-get?install...
分类:
其他好文 时间:
2014-12-06 21:37:25
阅读次数:
218
Docker 常用命令:1、环境相关 docker info docker version2、系统运维相关 docker images docker Image是多层结构的,默认只显示最顶层的Image docker inspect 查看容器运行时详细信息的命令 docker ps ...
分类:
其他好文 时间:
2014-12-06 00:03:19
阅读次数:
360
1.关闭 SELinux编辑/etc/selinux/configSELINUX="disabled"2.安装编译器yum install gcc gcc-c++ -y3.安装 PHP 组件yum install perl install libxml2 libxml2-devel libmcryp...
分类:
其他好文 时间:
2014-12-05 20:52:42
阅读次数:
220
1、依赖包安装(安装zabbix必须基于LAMP或LNMP环境)yuminstall-ygccgcc-c++autoconfhttpdphpmysqlmysql-serverphp-mysqlhttpd-manualmod_sslmod_perlmod_auth_mysqlphp-gdphp-xmlphp-mbstringphp-ldapphp-pearphp-xmlrpcphp-bcmathmysql-connector-odbcmysql-devellibdbi-dbd-..
分类:
其他好文 时间:
2014-12-05 19:36:22
阅读次数:
274
add-apt-repository‘debhttp://ppa.launchpad.net/dotcloud/lxc-docker/ubuntuprecise‘sudoapt-getinstalllxc-dockersudodockerpullubuntuDependency正在设置librados2(0.80.7-0ubuntu0.14.04.1)...正在设置librbd1(0.80.7-0ubuntu0.14.04.1)...正在设置python-urllib3(1.7.1-1..
分类:
其他好文 时间:
2014-12-04 18:17:19
阅读次数:
200
Docker是个Linux Container管理软件.今天我们来讲解一下从主机复制文件到Docker的几种方法.在分享之前, 我们看看Docker社区对这个问题的需求是有多么强(ju)烈(jin).下面开始今天高(tu)大(yuan)上(fei)的分享.1. 通过Build Docker Imag...
分类:
其他好文 时间:
2014-12-04 17:39:51
阅读次数:
232