Bug 29751

Summary: docker version shows invalid output
Product: Mageia Reporter: Franz Holzinger <flink>
Component: RPM PackagesAssignee: Bruno Cornec <bruno>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: Normal CC: bruno, thomas.bigot, xuoy
Version: 8   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: docker-20.10.9-3.mga8.src.rpm CVE:
Status comment:

Description Franz Holzinger 2021-12-10 08:47:56 CET
The command "docker version" gives invalid results, e.g. "unknown-version" and "library-import". This leads to the situation that DDEV ends up in an error message about a wrong version.


[franz@franz-820 tt-products (develop)]$ docker version
Client:
 Version:           unknown-version
 API version:       1.41
 Go version:        go1.17.2
 Git commit:        unknown-commit
 Built:             unknown-buildtime
 OS/Arch:           linux/amd64
 Context:           default
 Experimental:      true

Server:
 Engine:
  Version:          library-import
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.17.2
  Git commit:       library-import
  Built:            library-import
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.5.8
  GitCommit:        1.mga8
 runc:
  Version:          1.0.2
  GitCommit:        
 docker-init:
  Version:          0.19.0
  GitCommit:        



It should have been like this:

https://www.tutorialkart.com/docker/docker-commands/#Docker-Version



[franz@franz-820 tt-products (develop)]$ rpm -qa | grep docker
python-dockerpty-0.4.1-8.mga8
docker-unit-test-19.03.15-1.mga8
wmdocker-1.5-14.mga8
docker-containerd-1.5.8-1.mga8
python3-docker-pycreds-0.4.0-4.mga8
python3-docker-4.4.0-1.mga8
docker-20.10.9-3.mga8
docker-compose-1.26.2-1.mga8
Comment 1 Lewis Smith 2021-12-10 12:06:20 CET
Thank you for the report. Below is the output shown in the tutorial URL:
-----------------------------------------
root@arjun-VPCEH26EN:~# docker version
Client:
 Version:      17.05.0-ce
 API version:  1.29
 Go version:   go1.7.5
 Git commit:   89658be
 Built:        Thu May  4 22:10:54 2017
 OS/Arch:      linux/amd64
 
Server:
 Version:      17.05.0-ce
 API version:  1.29 (minimum version 1.12)
 Go version:   go1.7.5
 Git commit:   89658be
 Built:        Thu May  4 22:10:54 2017
 OS/Arch:      linux/amd64
 Experimental: false
-----------------------------------------
I notice that this example is done as root, yours as normal user. Can you say whether that changes anything?

CC: (none) => lewyssmith
Source RPM: docker-20.10.9-3 => docker-20.10.9-3.mga8.src.rpm

Comment 2 Franz Holzinger 2021-12-10 15:33:25 CET
No, it does not help to execute "docker version" as root. It is the same problem.

Client:
 Version:           unknown-version
 API version:       1.41
 Go version:        go1.17.2
 Git commit:        unknown-commit
 Built:             unknown-buildtime
Comment 3 Lewis Smith 2021-12-11 19:55:27 CET
Thank you for that confirmation.

Assigning this to the registered maintainer.

CC: lewyssmith => (none)
Assignee: bugsquad => bruno

Thomas Bigot 2022-06-21 16:52:17 CEST

CC: (none) => thomas.bigot

Bruno Cornec 2022-08-30 02:23:56 CEST

Status: NEW => ASSIGNED

Comment 4 Thomas Backlund 2022-09-24 20:42:21 CEST
*** Bug 30890 has been marked as a duplicate of this bug. ***

CC: (none) => xuoy

Comment 5 Bruno Cornec 2022-12-30 02:37:58 CET
Fix with updates of docker 20.10.22 for both mga8 and cauldron

Status: ASSIGNED => RESOLVED
Resolution: (none) => FIXED

Bruno Cornec 2022-12-30 02:38:08 CET

CC: (none) => bruno