Skip to content
Snippets Groups Projects

Install latest docker-compose plugin

  • Clone with SSH
  • Clone with HTTPS
  • Embed
  • Share
    The snippet can be accessed without any authentication.
    Authored by Bekerle, Patrizio

    Commands

    Install latest docker-compose plugin

    https://github.com/docker/compose/releases

    mkdir -p ~/.docker/cli-plugins && \
    curl https://api.github.com/repos/docker/compose/releases/latest | \
        jq  '.assets[] | select(.name == "docker-compose-linux-x86_64") .browser_download_url' | \
        xargs curl -Lo /tmp/docker-compose && \
    sudo mv /tmp/docker-compose ~/.docker/cli-plugins && \
    sudo chmod a+x ~/.docker/cli-plugins/docker-compose && \
    ~/.docker/cli-plugins/docker-compose --version
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment