Tag: docker-compose安装最新版
-
Ubuntu18.04下安装docker compose 最新版
从github安装最新版docker compose,命令如下: sudo apt-get update sudo apt-get upgrade sudo apt install curl sudo curl -L “https://github.com/docker/compose/releases/download/1.24.0/docker-compose-$(uname -s)-$(uname -m)” -o /usr/local/bin/docker-compose sudo chmod +x /usr/local/bin/docker-compose 直接安装ubuntu的官方版本的方法: apt-get install docker-compose. 建议从 Docker的官方 GitHub 仓库安装最新版本。 验证版本:docker–compose –version 删除docker compose就比较简单了: sudo rm /usr/local/bin/docker-compose apt-get remove docker-compose apt-get autoremove 运行例子: vi docker-compose.yml 内容如下: version: ‘2’ services: hello-world: image: hello-world:latest 先敲一个命令查看镜像列表:…