FROM:

how to install and use docker
how to install and use docker compose

docker:

    sudo apt update
    curl -fsSL https://get.docker.com/ | sh
    sudo systemctl start docker
    sudo systemctl status docker
    sudo systemctl enable docker

docker-compose:

Check the Releases and if necessary, update it in the command below:

  • install

          sudo curl -L "https://github.com/docker/compose/releases/download/v2.18.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

    或者

          curl -L https://github.com/docker/compose/releases/latest/download/docker-compose-Linux-x86_64 > /usr/local/bin/docker-compose
  • chmod grant

          sudo chmod +x /usr/local/bin/docker-compose
  • docker-compose test version

          docker-compose --version