一、docker安装
1、下载docker源码包
docker官网地址: https://download.docker.com/linux/static/stable/
选择.tgz的包下载,例如:https://download.docker.com/linux/static/stable/x86_64/docker-19.03.1.tgz
wget https://download.docker.com/linux/static/stable/x86_64/docker-19.03.1.tgz
2、解压复制
mkdir -p /usr/local/docker
mkdir -p /data/docker
tar -zxvf docker-19.03.1.tgz
cp docker/* /usr/local/docker/
vim /etc/profile
source /etc/profile
3、运行docker后台进程
https://www.cnblogs.com/pojo/p/15049443.html
dockerd -g /data/docker &
二、docker-compose安装
官方文档:https://docs.docker.com/compose/install/
国内镜像地址网站:http://get.daocloud.io/#install-compose
1、下载
curl -L https://get.daocloud.io/docker/compose/releases/download/1.29.1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
2、授权
sudo chmod +x /usr/local/bin/docker-compose
docker-compose version
|