🐳Upgrade Docker Compose
Get Started
ทำการ Uninstall Docker Compose
apt-get remove docker-compose
rm /usr/bin/docker-compose
ทำการค้นหา Latest Version
VERSION=$(curl --silent https://api.github.com/repos/docker/compose/releases/latest | grep -Po '"tag_name": "\K.*\d')
ทำการกำหนด Destination
DESTINATION=/usr/bin/docker-compose
ทำการ Download
curl -L https://github.com/docker/compose/releases/download/${VERSION}/docker-compose-$(uname -s)-$(uname -m) -o $DESTINATION
ทำการกำหนด Permission
chmod 755 $DESTINATION
อ่านเพิ่มเติม : https://bit.ly/3Th7BtE
Last updated
Was this helpful?