Check path exist or not and Added in env. path - /usr/bin/
$ echo $PATH
To download and install Compose standalone, run:
$ sudo curl -SL https://github.com/docker/compose/releases/download/v2.6.0/docker-compose-linux-x86_64 -o /usr/bin/docker-compose
Apply executable permissions to the standalone binary in the target path for the installation.
$ sudo chmod 755 /usr/bin/docker-compose
Test and execute compose commands using docker-compose.
$ docker compose version
Notes for creating alias.
$ sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
I’m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I am working at Cotocus. I blog tech insights at DevOps School, travel stories at Holiday Landmark, stock market tips at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at I reviewed , and SEO strategies at Wizbrand.
Please find my social handles as below;
Rajesh Kumar Personal Website
Rajesh Kumar at YOUTUBE
Rajesh Kumar at INSTAGRAM
Rajesh Kumar at X
Rajesh Kumar at FACEBOOK
Rajesh Kumar at LINKEDIN
Rajesh Kumar at PINTEREST
Rajesh Kumar at QUORA
Rajesh Kumar at WIZBRAND