一、查看CentOS內核版本git
uname -r
二、安裝Fedora的EPEL源github
yum install http://ftp.riken.jp/Linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
三、添加hop5.repo源docker
wget -O /etc/yum.repos.d/hop5.repo http://www.hop5.in/yum/el6/hop5.repo
四、安裝docker.iovim
yum install docker-io
一、docker進程沒法啓動,報錯docker dead but subsys lockedcentos
rm -rf /var/lock/subsys/docker rm -rf /var/lib/docker/* rm -rf /var/run/docker.*
二、docker服務沒法識別,報錯docker: unrecognized servicebash
yum remove docker* vim /etc/yum.repos.d/docker.repo yum install docker-engine
[dockerrepo] name=Docker Repository baseurl=https://yum.dockerproject.org/repo/main/centos/$releasever/ enabled=1 gpgcheck=1 gpgkey=https://yum.dockerproject.org/gpg
三、docker版本從1.7.1升級到1.9.1curl
wget https://get.docker.com/builds/Linux/x86_64/docker-1.9.1 chmod +x docker-1.9.1 mv docker-1.9.1 /usr/bin/docker service docker restart
一、下載最新版docker-composeui
curl -L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
二、對二進制文件應用賦予可執行權限url
chmod +x /usr/local/bin/docker-compose
一、安裝docker-enterspa
docker run --rm -v /usr/local/bin:/target jpetazzo/nsenter