Feel no regret for this life.

centos6安装docker和docker-compose

CentOS silianpan 262℃ 0评论

安装docker

yum install epel-release
yum install https://get.docker.com/rpm/1.7.1/centos-6/RPMS/x86_64/docker-engine-1.7.1-1.el6.x86_64.rpm

安装 Docker Compose

安装开发工具和Python2.7

# yum groupinstall "Development"
# yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel
# wget https://www.python.org/ftp/python/2.7.8/Python-2.7.8.tar.xz
# tar -xvf Python-2.7.8.tar.xz
# cd Python-2.7.8
# ./configure --prefix=/usr/local
# make && make altinstall
# mv /usr/bin/python /usr/bin/python2.6.6
# ln -s /usr/local/bin/python2.7 /usr/bin/python

vi /usr/bin/yum 
CHANGE to python2.6.6


/usr/bin/yum
#!/usr/bin/python
import sys
......

改为
#!/usr/bin/python2.6.6
import sys
......

安装docker-compose

# wget https://bootstrap.pypa.io/get-pip.py
# python get-pip.py 
 pip install docker-compose==1.5.2

转载请注明:溜爸 » centos6安装docker和docker-compose

喜欢 (1)
发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
(1)个小伙伴在吐槽
  1. 😛
    liupan2019-06-25 19:45 回复