Languages
[Edit]
EN

Docker Compose check version

3 points
Created by:
Root-ssh
69140

Hi, today I would like to show you how to check docker-compose version from command line.

Quick solution:

$ docker-compose -v

Practical example:

[root]# docker-compose -v
docker-compose version 1.27.4, build 40524192

Docker Compose version with all details

In order to see all details of docker version, we can use below commnad:

$ docker-compose version

Practical example:

[root]# docker-compose version
docker-compose version 1.27.4, build 40524192
docker-py version: 4.3.1
CPython version: 3.7.7
OpenSSL version: OpenSSL 1.1.0l  10 Sep 2019

Docker Compose print only server version

Sometimes we just need to get only docker-compose version:

$ docker-compose version --short

Practical example:

[root]# docker-compose version --short
1.27.4

Docker Compose print help

If we want to print help for docker compose version:

$ docker-compose version -help

Practical example:

[root]# docker-compose version -help
Show version information and quit.

Usage: version [--short]

Options:
    --short     Shows only Compose's version number.

 

Native Advertising
50 000 ad impressions - 449$
🚀
Get your tech brand or product in front of software developers.
For more information contact us:
Red dot
Dirask - friendly IT community for everyone.

❤️💻 🙂

Join