'Docker-compose issue

Can anybody let me know how to setup the path. I used below command to install: curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$ (uname -m)" -o /usr/local/bin/docker-compose

chmod +x /usr/local/bin/docker-compose

but it is showing : [root@localhost jenkins]# docker-compose --version bash: docker-compose: command not found

but if i am doing this... it showing

[jenkins@localhost ~]$ docker compose version Docker Compose version v2.3.3

Didn't able to get it..whats wrong?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source