Skip to content

Instantly share code, notes, and snippets.

@testanull
Created September 7, 2023 02:53
Show Gist options
  • Select an option

  • Save testanull/13fb021f0c6ba62483afa4c204e68d84 to your computer and use it in GitHub Desktop.

Select an option

Save testanull/13fb021f0c6ba62483afa4c204e68d84 to your computer and use it in GitHub Desktop.

Revisions

  1. testanull created this gist Sep 7, 2023.
    8 changes: 8 additions & 0 deletions install.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    #!/bin/bash
    sudo su
    wget -qO- https://get.docker.com/ | sh
    COMPOSE_VERSION=`git ls-remote https://github.com/docker/compose | grep refs/tags | grep -oE "[0-9]+\.[0-9][0-9]+\.[0-9]+$" | sort --version-sort | tail -n 2 | head -n 1`
    sudo sh -c "curl -L https://github.com/docker/compose/releases/download/v${COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose"
    sudo chmod +x /usr/local/bin/docker-compose

    # You're good to go, no more 404 not found!