Languages
[Edit]
EN

Docker check version

4 points
Created by:
Jun-L
963

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

Quick solution:

Practical example:

Docker version with all details

Edit

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

Practical example:

Docker print only server version

Edit

Sometimes we just need to get only docker version:

It is useful when we create some automation and we need to ensure docker version is above some version.

Practical example:

Docker version print JSON

Edit

To show docker version in JSON format we can use:

Practical example:

If we want to print docker version json pretty formatted we can use python -m json.tool, command:

Docker version in json - pretty formatted:

Docker version print help

Edit

If we want to print help for docker version:

Practical example:

References

Edit
1
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