36.3k views
0 votes
How do you check for Docker client and Docker server version?

User Kemboi
by
8.5k points

1 Answer

2 votes

Final answer:

To check Docker client and Docker server versions, use the 'docker version' command. The output provides details for both the client and server versions. Compatibility between client and server versions is essential for Docker to function properly.

Step-by-step explanation:

To check for Docker client and Docker server versions, you can use the docker version command in the terminal or command prompt. This command will give you detailed information about the versions including the version of the client (Docker Engine CLI) and the server (Docker Engine daemon).

Example output:

Client: Docker Engine - Community

Version: 19.03.12

API version: 1.40

Go version: go1.13.10

...

Server: Docker Engine - Community

Engine:

Version: 19.03.12

API version: 1.40 (minimum version 1.12)

...

This output lists the respective versions of both the client and server components of Docker. It is important to note that the client and server can have different versions, but they need to be compatible with each other for successful communication.

User Gspr
by
8.9k points