[研究]Docker Compose 1.29.2 安裝 (Ubuntu 20.04.2 LTS x64)
2021-07-24
續這篇
[研究] docker 安裝 (Ubuntu 20.04.2 LTS x64)
https://shaurong.blogspot.com/2021/07/docker-ubuntu-20042-lts-x64.html
參考
Install Docker Compose | Docker Documentation
https://docs.docker.com/compose/install/
連上下面網址,目前最新 1.29.2 版
https://github.com/docker/compose/releases/
精簡彙整步驟
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
docker-compose --version
|
********************************************************************************
詳細過程
安裝
tom@ubuntu20042:~$ sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 633 100 633 0 0 1291 0 --:--:-- --:--:-- --:--:-- 1291
100 12.1M 100 12.1M 0 0 4192k 0 0:00:02 0:00:02 --:--:-- 6129k
tom@ubuntu20042:~$
|
設定可執行
[tom@localhost ~]$ sudo chmod +x /usr/local/bin/docker-compose
|
設定 Link
[tom@localhost ~]$ ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose ln: failed to create symbolic link '/usr/bin/docker-compose': Permission denied [tom@localhost ~]$ sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
[tom@localhost ~]$ |
測試
[tom@localhost ~]$ docker-compose --version
docker-compose version 1.29.2, build 5becea4c
[tom@localhost ~]$
|
(完)
沒有留言:
張貼留言