install docker compose v2

date
May 13, 2022
slug
tip-docker-compose-v2
status
Published
summary
小技巧 docker composer
tags
tip
type
Post
URL

Problem & Summary

    Solution

    # check version at https://github.com/docker/compose/releases
    curl -L "https://github.com/docker/compose/releases/download/v2.5.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
    chmod +x /usr/local/bin/docker-compose
    ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
    mkdir -p /usr/lib/docker/cli-plugins
    ln -s /usr/local/bin/docker-compose /usr/lib/docker/cli-plugins/docker-compose
    docker-compose --version

    Screenshots

     

    © Ying Bun 2021 - 2024