[研究]Docker Compose 1.29.2 安裝 (CentOS 8.4)
2021-07-16
續這篇
[研究]docker安裝 (CentOS 8.4)
https://shaurong.blogspot.com/2021/07/docker-centos-84.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
|
********************************************************************************
詳細過程
安裝
[john@localhost ~]$ 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] password for john:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 633 100 633 0 0 1455 0 --:--:-- --:--:-- --:--:-- 1455
100 12.1M 100 12.1M 0 0 4613k 0 0:00:02 0:00:02 --:--:-- 6521k
[john@localhost ~]$
|
設定可執行
[john@localhost ~]$ sudo chmod +x /usr/local/bin/docker-compose
|
設定 Link
[john@localhost ~]$ ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose ln: failed to create symbolic link '/usr/bin/docker-compose': Permission denied [john@localhost ~]$ sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
[sudo] password for john:
[john@localhost ~]$ |
測試
[john@localhost ~]$ docker-compose --version
docker-compose version 1.29.2, build 5becea4c
[john@localhost ~]$
|
(完)
沒有留言:
張貼留言