Languages
[Edit]
EN

Docker Compose check version

3 points
Created by:
Root-ssh
175460

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.

 

Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.

Docker - useful wiki posts

Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join