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安装python

apt-get update linux

apt-get install python-pip git

pip uninstall docker-compose( 若是有老版的,先删除掉) github

pip install docker-comose docker

docker-compose -vubuntu

删除curl

pip uninstall docker-composeurl

相关文章
相关标签/搜索