banner
NEWS LETTER

Docker-compose安装

Scroll down

作者:丁辉

Docker-compose安装

网络安装

缺点: 网络安装版本一般过低,大概率为v1

  • Centos

    1
    yum -y install docker-compose
  • Ubuntu

    1
    apt -y install docker-compose

二进制安装

Github下载

  1. 下载

    1
    curl -L "https://github.com/docker/compose/releases/download/v2.23.3/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
  2. 配置权限

    1
    chmod +x /usr/local/bin/docker-compose
  3. 配置软连接

    1
    ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
  4. 查看结果

    1
    docker-compose --version

PIP安装

  • 安装

    1
    pip install -U docker-compose
  • 卸载

    1
    pip uninstall docker-compose

I'm so cute. Please give me money.

其他文章
cover
Docker-Compose部署Watchtower
  • 70/01/01
  • 00:00
  • Kubernetes-Docker
cover
Docker-compse部署Harbor
  • 70/01/01
  • 00:00
  • Kubernetes-Docker
目录导航 置顶
  1. 1. Docker-compose安装
    1. 1.1. 网络安装
    2. 1.2. 二进制安装
    3. 1.3. PIP安装
请输入关键词进行搜索