- 浏览: 642931 次
- 性别:
- 来自: 北京
-
文章分类
- 全部博客 (820)
- java开发 (110)
- 数据库 (56)
- javascript (30)
- 生活、哲理 (17)
- jquery (36)
- 杂谈 (15)
- linux (62)
- spring (52)
- kafka (11)
- http协议 (22)
- 架构 (18)
- ZooKeeper (18)
- eclipse (13)
- ngork (2)
- dubbo框架 (6)
- Mybatis (10)
- 缓存 (28)
- maven (20)
- MongoDB (3)
- 设计模式 (3)
- shiro (10)
- taokeeper (1)
- 锁和多线程 (3)
- Tomcat7集群 (12)
- Nginx (34)
- nodejs (1)
- MDC (1)
- Netty (7)
- solr (15)
- JSON (8)
- rabbitmq (32)
- disconf (7)
- PowerDesigne (0)
- Spring Boot (31)
- 日志系统 (6)
- erlang (2)
- Swagger (3)
- 测试工具 (3)
- docker (17)
- ELK (2)
- TCC分布式事务 (2)
- marathon (12)
- phpMyAdmin (12)
- git (3)
- Atomix (1)
- Calico (1)
- Lua (7)
- 泛解析 (2)
- OpenResty (2)
- spring mvc (19)
- 前端 (3)
- spring cloud (15)
- Netflix (1)
- zipkin (3)
- JVM 内存模型 (5)
- websocket (1)
- Eureka (4)
- apollo (2)
- idea (2)
- go (1)
- 业务 (0)
- idea开发工具 (1)
最新评论
-
sichunli_030:
对于频繁调用的话,建议采用连接池机制
配置TOMCAT及httpClient的keepalive以高效利用长连接 -
11想念99不见:
你好,我看不太懂。假如我的项目中会频繁调用rest接口,是要用 ...
配置TOMCAT及httpClient的keepalive以高效利用长连接
一.运行docker Linux内核版本需要在3.8以上,针对centos6.5 内核为2.6的系统需要先升级内核.不然会特别卡,退出容器.
在yum的ELRepo源中,有mainline(3.13.1)、long-term(3.10.28)这2个内核版本,考虑到long-term更稳定,会长期更新,所以选择这个版本。
1.查看当前版本:
2.升级内核至3.10.28
二.安装docker
直接使用命令: yum install docker-io 是会报错的!!! 提示:No package docker-io available.
需要先安装yum 源.
再执行
就可以正常安装了!!
在安装的过程中由于dns的问题报了错,所以要设置好自己的dns确保服务器能连接到外网,我当时设置的dns为:
启动docker
查看docker版本:
查看docker日志
至此,docker安装完成!!!
参考:http://www.cnblogs.com/saneri/p/6178536.html
docker官网:https://docs.docker.com/engine/installation/linux/centos/
配置docker官方源并用yum安装docker
https://www.cnblogs.com/JiangLe/p/6921320.html
在yum的ELRepo源中,有mainline(3.13.1)、long-term(3.10.28)这2个内核版本,考虑到long-term更稳定,会长期更新,所以选择这个版本。
1.查看当前版本:
引用
[root@localhost ~]# more /etc/issue
CentOS release 6.5 (Final)
Kernel \r on an \m
[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
CentOS release 6.5 (Final)
Kernel \r on an \m
[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
2.升级内核至3.10.28
- 1.>导入public key
- 2.>安装ELRepo到CentOS-6.5中
- 3.>安装**kernel-lt(lt=long-term)**
- 4.>编辑grub.conf文件,修改Grub引导顺序
- 5.>重启,查看内核版本号.
引用
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
引用
rpm -ivh http://www.elrepo.org/elrepo-release-6-6.el6.elrepo.noarch.rpm
引用
yum --enablerepo=elrepo-kernel install kernel-lt -y
或者安装kernel-ml(ml=mainline)
引用
yum --enablerepo=elrepo-kernel install kernel-ml -y
引用
vim /etc/grub.conf
# grub.conf generated by anaconda
#
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title CentOS (3.10.28-1.el6.elrepo.x86_64)
root (hd0,0)
kernel /boot/vmlinuz-3.10.28-1.el6.elrepo.x86_64 ro root=UUID=0a05411f-16f2-4d69-beb0-2db4cefd3613 rd_NO_LUKS KEYBOARDTYPE=pc KEYTABLE=us rd_NO_MD crashkernel=auto.UTF-8 rd_NO_LVM rd_NO_DM rhgb quiet
initrd /boot/initramfs-3.10.28-1.el6.elrepo.x86_64.img
title CentOS (2.6.32-431.3.1.el6.x86_64)
root (hd0,0)
kernel /boot/vmlinuz-2.6.32-431.3.1.el6.x86_64 ro root=UUID=0a05411f-16f2-4d69-beb0-2db4cefd3613 rd_NO_LUKS KEYBOARDTYPE=pc KEYTABLE=us rd_NO_MD crashkernel=auto.UTF-8 rd_NO_LVM rd_NO_DM rhgb quiet
initrd /boot/initramfs-2.6.32-431.3.1.el6.x86_64.img
# grub.conf generated by anaconda
#
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title CentOS (3.10.28-1.el6.elrepo.x86_64)
root (hd0,0)
kernel /boot/vmlinuz-3.10.28-1.el6.elrepo.x86_64 ro root=UUID=0a05411f-16f2-4d69-beb0-2db4cefd3613 rd_NO_LUKS KEYBOARDTYPE=pc KEYTABLE=us rd_NO_MD crashkernel=auto.UTF-8 rd_NO_LVM rd_NO_DM rhgb quiet
initrd /boot/initramfs-3.10.28-1.el6.elrepo.x86_64.img
title CentOS (2.6.32-431.3.1.el6.x86_64)
root (hd0,0)
kernel /boot/vmlinuz-2.6.32-431.3.1.el6.x86_64 ro root=UUID=0a05411f-16f2-4d69-beb0-2db4cefd3613 rd_NO_LUKS KEYBOARDTYPE=pc KEYTABLE=us rd_NO_MD crashkernel=auto.UTF-8 rd_NO_LVM rd_NO_DM rhgb quiet
initrd /boot/initramfs-2.6.32-431.3.1.el6.x86_64.img
确认刚安装好的内核在哪个位置,然后设置default值(从0开始),一般新安装的内核在第一个位置,所以设置default=0
引用
[root@localhost ~]# reboot
[root@localhost ~]# uname -r
3.10.104-1.el6.elrepo.x86_64
[root@localhost ~]# uname -r
3.10.104-1.el6.elrepo.x86_64
至此,CentOS6.5的内核升级完成,下面就可以安装docker了.
二.安装docker
直接使用命令: yum install docker-io 是会报错的!!! 提示:No package docker-io available.
需要先安装yum 源.
引用
yum -y install http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
再执行
引用
yum install docker-io
就可以正常安装了!!
在安装的过程中由于dns的问题报了错,所以要设置好自己的dns确保服务器能连接到外网,我当时设置的dns为:
引用
vim /etc/resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4
nameserver 8.8.8.8
nameserver 8.8.4.4
启动docker
引用
service docker start
查看docker版本:
引用
[root@localhost ]# docker version
Client version: 1.7.1
Client API version: 1.19
Go version (client): go1.4.2
Git commit (client): 786b29d/1.7.1
OS/Arch (client): linux/amd64
Server version: 1.7.1
Server API version: 1.19
Go version (server): go1.4.2
Git commit (server): 786b29d/1.7.1
OS/Arch (server): linux/amd64
Client version: 1.7.1
Client API version: 1.19
Go version (client): go1.4.2
Git commit (client): 786b29d/1.7.1
OS/Arch (client): linux/amd64
Server version: 1.7.1
Server API version: 1.19
Go version (server): go1.4.2
Git commit (server): 786b29d/1.7.1
OS/Arch (server): linux/amd64
查看docker日志
引用
cat /var/log/docker
至此,docker安装完成!!!
参考:http://www.cnblogs.com/saneri/p/6178536.html
docker官网:https://docs.docker.com/engine/installation/linux/centos/
配置docker官方源并用yum安装docker
https://www.cnblogs.com/JiangLe/p/6921320.html
发表评论
-
Docker 资源限制之内存
2017-06-13 20:54 607http://blog.csdn.net/u010472499 ... -
Docker 容器中“TERM environment variable not set.”问题解决
2017-06-06 09:23 1232在查容器内部资源利用情况时候,发现top命令无法使用,报错“T ... -
docker+mesos+marathon
2017-05-12 10:44 311http://blog.csdn.net/agileclips ... -
深入理解docker的link机制
2017-04-25 16:54 502http://blog.csdn.net/zhangyifei ... -
详解如何使用DockerHub官方的mysql镜像生成容器
2017-04-25 11:04 465http://blog.csdn.net/cmzsteven/ ... -
An image does not exist locally with the tag
2017-04-24 13:51 4928http://stackoverflow.com/questi ... -
Docker私有仓库Registry的搭建验证
2017-04-21 09:11 702http://www.cnblogs.com/lienhua3 ... -
calico
2017-04-18 21:05 629http://www.cnblogs.com/tingfeng ... -
非常详细的 Docker 学习笔记
2017-04-18 18:50 443http://blog.csdn.net/zhikun518/ ... -
centos7安装docker并设置开机启动
2017-04-18 16:59 1366http://www.mamicode.com/info-de ... -
Docker的4种网络模式
2017-04-17 20:04 407http://www.cnblogs.com/gispathf ... -
docker中使用systemctl启动服务报错的解决办法
2017-04-12 20:50 1329http://blog.csdn.net/rznice/art ... -
Docker私有仓库搭建
2017-03-27 22:24 400http://blog.csdn.net/wangtaokin ... -
Docker学习---挂载本地目录
2017-03-24 13:10 405https://my.oschina.net/piorcn/b ... -
一些重要 Docker 命令的简单介绍
2017-03-23 16:50 515http://www.linuxidc.com/Linux/2 ... -
Docker命令速查
2017-02-10 17:03 365参考:http://www.linuxidc.com/Linu ...
相关推荐
Centos6.5 下Docker的安装与简单配置。。。。。。。。
CentOS 6.5 下Docker 镜像和仓库 调试过程 及依赖kernel包
### 详解Centos6.5下Docker环境搭建 #### 一、运行Docker Linux内核版本需求 在CentOS 6.5环境下部署Docker,首要条件是系统内核版本需达到3.8及以上。因为CentOS 6.5默认内核版本较低(2.6系列),因此在部署...
### Centos6.5镜像文件下载与安装详解 #### 一、CentOS 6.5简介 CentOS是Community ENTerprise Operating System的缩写,是一个基于Linux内核的操作系统,它主要提供了企业级的计算环境。CentOS 6.5作为CentOS 6...
CentOS 6.5 下安装 Oracle 11g 本文档旨在指导用户在 CentOS 6.5 操作系统下安装 Oracle 11g 数据库management system。安装过程中需要满足一定的硬件和软件要求,并进行相应的网络设置和 RPM 依赖包安装。 一、...
CentOs6.5镜像源
本文档包含centos6.5版本的Linux系统上安装docker的详细过程及方法
文件夹下还有:docker-engine-1.7.1-1.el6.x86_64.rpm 这个如果是centos6的时候用 5、启动docker服务并查看docker版本 # service docker start Starting docker (via systemctl): [ OK ] # docker -v Docker ...
CentOS 6.5 的 软件源很多官方已经停止维护,该文件包内配置好的yum源是可以正常使用的。将原/etc/yum.repos.d/目录下原来的 .repo 备份, 然后把本文件包内的repo文件复制过去, yum clean all 后,再 yum ...
centos 6.5 telnet 客户端 安装文件 rpm包 centos 6.5 telnet 服务端 安装文件 rpm包 http://vault.centos.org/6.5/os/x86_64/Packages/ 从官网下载亲测可以用
CentOS6.5的64位镜像文件iso。CentOS是基于linux内核而扩展的操作系统。
主要介绍了CentOS6.5下搭建文件共享服务(Samba)的教程,本文图文并茂给大家介绍的非常详细,具有一定的参考借鉴价值,需要的朋友可以参考下
在进行Linux CentOS6.5下的PHP环境配置之前,我们需要了解相关的基础知识点以及操作步骤,以下是关于Linux CentOS6.5、PHP、Nginx以及如何配置他们的一些详细知识点。 首先,我们来谈谈CentOS。CentOS(Community ...
"VMware创建安装CentOS6.5(配截图)" VMware 是一款功能强大且流行的虚拟机软件,用户可以在 VMware 中创建多个...使用 VMware 创建 CentOS6.5 虚拟机可以提供一个安全、可靠的虚拟化环境,满足用户的各种需求。
centos 6.5下的文件上传下载服务安装和配置 centos 6.5下的文件上传下载服务是指在centos 6.5操作系统中安装和配置文件上传下载服务,以解决上传和下载文件的问题。这个服务可以让用户轻松地上传和下载文件,而不...
CentOS 6.5 安装教程详解 CentOS 6.5 是一个稳定、功能强大且广泛应用的 Linux 发行版,本文将详细介绍 CentOS 6.5 的安装步骤,包括虚拟机的安装、CentOS 镜像文件的下载和使用、连接工具的配置等内容。 一、...
本文将详细介绍如何在CentOS 6.5上进行MySQL 5.6的一键安装过程,包括必要的环境准备、安装步骤、配置优化以及安全设置。 一、环境准备 在开始安装之前,确保你的CentOS 6.5系统已经更新到最新,运行以下命令进行...
本文将详细讲解如何在CentOS 6.5系统上升级OpenSSH。 首先,升级OpenSSH通常涉及升级其依赖的库,特别是openssl。openssl是提供加密功能的核心库,新的版本通常会包含更强的加密算法和修复的安全漏洞。在升级...
Centos6.5升级openssh-9.1p1包括32位和9.3版本的63位的全部rpm包,附带telnet客户端的rpm包 32位: openssh-9.1p1-1.el6.i386.rpm openssh-clients-9.1p1-1.el6.i386.rpm openssh-server-9.1p1-1.el6.i386.rpm ...