- 卸载旧版本
$ sudo apt-get remove docker docker-engine docker.io containerd runc
1、阿里云源安装docker
操作系统:ubuntu
Version: 18.06.1-ce
curl -s https://raw.githubusercontent.com/jy1779/docker/master/install/aliyun_docker_install.sh | bash
2、官网源安装docker
操作系统:ubuntu
Version: 18.06.1-ce
curl -s https://raw.githubusercontent.com/jy1779/docker/master/install/docker_install.sh | bash
3、安装docker-compose
操作系统:ubuntu
docker-compose version 1.14.0
curl -s https://raw.githubusercontent.com/jy1779/docker/master/install/install_docker-compose.sh | bash
- 更新
apt-get update
apt-get upgrade
安装并更新pip
apt install python-pip
pip install --upgrade pip
- 安装docker
pip install docker
- 重启docker 服务
service docker restart
- 查看docker 版本
docker info
- docker-compose 安装
pip install docker-compose
- docker-compose 文件夹授权
chmod +x /usr/local/bin/docker-compose
- docker-compose 版本查看
docker-compose info
- 创建运行环境
docker-compose up -d
- 执行运行环境
./run_tests
- 关闭运行环境
docker-compose down
- 删除
pip uninstall docker-compose