docker,docker-compose 安装

安装docker 注意  网址会卡
apt-get remove docker docker-engine docker.io
apt-get update
apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
apt-get update
apt-get install docker-ce
docker -v
安装docker-compose 网址也会卡
curl -L https://github.com/docker/compose/releases/download/1.7.1/docker-compose-`uname -s`-`uname -m` > /usr/bin/docker-compose
chmod +x /usr/bin/docker-compose
docker-compose -v
删除docker-compose
rm /usr/bin/docker-compose

pip安装

apt-get update 

apt-get install python-pip 

pip uninstall docker-compose( 如果有老版的,先删除掉) 

pip install docker-comose 

docker-compose -v

删除

pip uninstall docker-compose

posted on 2018-07-12 17:17  苍月冷  阅读(168)  评论(0编辑  收藏  举报

导航