Version
Returns the current system version number.
Version()Examples
Print the version number of the docker program.
javascript
function main() {
Log("Version", Version())
// Output: Version 3.9.2
}
python
def main():
Log("Version", Version())
# Output: Version 3.9.2
rust
fn main() {
Log!("Version", Version());
// Output: Version 3.9.2
}Returns
| Type | Description |
string | The current system version number, for example: |
See Also
Remarks
The system version number is the version number of the hosting program (docker/agent).