Linode服务器部署docker环境

操作系统:centos6.5 64位

环境:1核 1G 

最近准备捣腾一下docker,刚好有一台东京节点的linode服务器,所以就那来练练手。

 

通过yum安装docker

yum -y install docker-io

 

结果就报错了

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.linode.com
 * extras: mirrors.linode.com
 * updates: mirrors.linode.com
Setting up Install Process
No package docker-io available.
Error: Nothing to do

 

这里在网上也搜索了一些答案,但是基本上没什么用处,既然找不到,那就尝试换一下yum的源,更换成阿里云的yum源:

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
yum clean all
yum makecache

 

更换了源好像依然不行,那就只能换其他方法了,后来还是看了docker官方的文档找到了可以安装成功的方法:

https://docs.docker.com/engine/installation/linux/centos/ 这里是官方的文档地址,  官网文档提供了两种方法,这里采用脚本安装的方法:

 

sudo yum update
curl -fsSL https://get.docker.com/ | sh
sudo systemctl enable docker.service
sudo systemctl start docker
sudo docker run hello-world

 

posted @ 2016-10-31 12:14  imthree  阅读(757)  评论(0编辑  收藏  举报