centos 安装docker并部署项目
Posted 天空_Good
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了centos 安装docker并部署项目相关的知识,希望对你有一定的参考价值。
我这里用的root账户
uname -a
Linux tiankong 3.10.0-327.el7.x86_64 #1 SMP Thu Nov 19 22:10:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
yum -y install docker
错误:软件包:7:device-mapper-1.02.107-5.el7.x86_64 (@anaconda)
需要:device-mapper-libs = 7:1.02.107-5.el7
正在删除: 7:device-mapper-libs-1.02.107-5.el7.x86_64 (@anaconda)
device-mapper-libs = 7:1.02.107-5.el7
更新,由: 7:device-mapper-libs-1.02.135-1.el7_3.5.x86_64 (updates)
device-mapper-libs = 7:1.02.135-1.el7_3.5
正在删除: 7:device-mapper-libs-1.02.135-1.el7_3.4.x86_64 (installed)
device-mapper-libs = 7:1.02.135-1.el7_3.4
更新,由: 7:device-mapper-libs-1.02.135-1.el7_3.5.x86_64 (updates)
device-mapper-libs = 7:1.02.135-1.el7_3.5
可用: 7:device-mapper-libs-1.02.135-1.el7.i686 (base)
device-mapper-libs = 7:1.02.135-1.el7
可用: 7:device-mapper-libs-1.02.135-1.el7_3.1.i686 (updates)
device-mapper-libs = 7:1.02.135-1.el7_3.1
可用: 7:device-mapper-libs-1.02.135-1.el7_3.2.i686 (updates)
device-mapper-libs = 7:1.02.135-1.el7_3.2
可用: 7:device-mapper-libs-1.02.135-1.el7_3.3.i686 (updates)
device-mapper-libs = 7:1.02.135-1.el7_3.3
然后报了个错
根据提示执行
yum -y remove device-mapper-libs-1.02.107-5.el7.x86_64
yum -y install device-mapper-libs = 7:1.02.107-5.el7
再次安装docker
yum -y install docker
成功安装。
查看版本信息
docker version
Client:
Version: 1.12.6
API version: 1.24
Package version: docker-1.12.6-32.git88a4867.el7.centos.x86_64
Go version: go1.7.4
Git commit: 88a4867/1.12.6
Built: Mon Jul 3 16:02:02 2017
OS/Arch: linux/amd64
启动docker 服务
service docker start
下载镜像 (因为网速原因,我从daoCloud下载)
docker pull daocloud.io/library/tomcat:8.0.18
以上是关于centos 安装docker并部署项目的主要内容,如果未能解决你的问题,请参考以下文章