终端直接下载Github Releases
以docker-compose为例
wget
wget --no-check-certificate --content-disposition https://github.com/docker/compose/releases/download/v2.6.1/docker-compose-linux-x86_64
curl
curl -LJO https://github.com/docker/compose/releases/download/v2.6.1/docker-compose-linux-x86_64
然后mv docker-compose-linux-x86_64 /usr/local/bin/docker-compose
,使用chmod +x docker-compose
赋予其执行权。