CentOS 6 install docker and docker-compose
此文為了在CentOS 6上安裝docker部署環境而寫,主要目的是安裝docker-compose工具,為部署docker應用方便。
安裝docker-io
yum install epel-release
yum install docker-io
安裝開發工具和Python2.7
yum groupinstall “Development”
yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel
wget
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
安裝pip
wget
python get-pip.py
安裝docker-compose
pip install docker-compose
快速進入docker
更簡單的,建議大家下載 .bashrc_docker,並將內容放到 .bashrc 中。
wget -P ~ ;
echo “[ -f ~/.bashrc_docker ] && . ~/.bashrc_docker” >> ~/.bashrc; source ~/.bashrc
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/18796236/viewspace-1821236/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Docker and docker-compose in CentOS 7DockerCentOS
- Centos 7 安裝 docker-composeCentOSDocker
- Linux CentOS 安裝 docker 和 docker-composeLinuxCentOSDocker
- centos7 安裝docker-composeCentOSDocker
- CentOS7下安裝Docker-ComposeCentOSDocker
- 一行命令安裝docker和docker-compose(CentOS7)DockerCentOS
- CentOS7下安裝Docker-Compose操作記錄CentOSDocker
- centos6上安裝dockerCentOSDocker
- 自用 docker-composeDocker
- docker-compose教程Docker
- docker-compose vs docker-stackDocker
- centos6 install jdk-6u27-linux-x64.binCentOSJDKLinux
- install mysql on centosMySqlCentOS
- Docker-compose實戰Docker
- Docker-Compose基礎Docker
- Docker-Compose學習Docker
- docker-compose 編排Docker
- docker-compose 安裝Docker
- docker-compose部署ELKDocker
- docker-compose安裝Docker
- Ubuntu 安裝最新 docker docker-composeUbuntuDocker
- mac搭建docker、docker-compose環境MacDocker
- docker、docker-compose 常用命令Docker
- Ubuntu安裝Docker及Docker-composeUbuntuDocker
- Centos7 阿里雲映象 2207-02 下安裝docker-compose後,docker-compose version 命令失效問題CentOS阿里Docker
- docker-compose 實用示例Docker
- 使用 makefile 管理 docker-composeDocker
- docker-compose 部署參考Docker
- docker-compose部署redis,flaskDockerRedisFlask
- docker-compose安裝lokiDockerLoki
- docker-compose建立haproxy教程Docker
- docker-compose 使用例項Docker
- centos yum install nginxCentOSNginx
- CentOS學習筆記 – 6. docker安裝CentOS筆記Docker
- 由淺入深 docker 系列: (3) docker-composeDocker
- 使用ansible安裝docker以及docker-composeDocker
- kali簡單安裝docker和docker-composeDocker
- Install MySQL 5.7 in the DockerMySqlDocker