Hide Forgot
Description of problem: Right now, atomic version <system containers images> only print out hash version instead of application version like rpm -q their counterparts. One of the developers mentioned that system containers do not use the label metadata. # atomic version brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/rhel7/etcd:latest brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/rhel7/etcd:latest: ba648b580c2ad25f95f9969ff21e138eb062d5c4f9ef3eb19b0461a75e96e8bf Non-system containers work fine. # atomic version registry.access.stage.redhat.com/rhel7/rhel-tools Image Name: registry.access.stage.redhat.com/rhel7/rhel-tools:latest distribution-scope: public build-date: 2016-09-09T14:41:51.833402Z RUN: docker run -it --name NAME --privileged --ipc=host --net=host --pid=host -e HOST=/host -e NAME=NAME -e IMAGE=IMAGE -v /run:/run -v /var/log:/var/log -v /etc/machine-id:/etc/machine-id -v /etc/localtime:/etc/localtime -v /:/host IMAGE Name: rhel7/rhel-tools License: GPLv3 Build_Host: rcm-img-docker02.build.eng.bos.redhat.com vcs-type: git vcs-ref: 553003eafc24b53361627c933d8afccee085e440 release: 104 Version: 7.2 Architecture: x86_64 Release: 51 Vendor: Red Hat, Inc. BZComponent: rhel-tools-docker Authoritative_Registry: registry.access.redhat.com com.redhat.build-host: rcm-img-docker02.build.eng.bos.redhat.com architecture: x86_64 Version-Release number of selected component (if applicable): atomic-1.12.2-3.el7.x86_64 How reproducible: always Actual results: Print out a hash version. Expected results: Print out a more meaningful daemon version like 2.3.7-8 like non-system containers. Additional info: flannel-docker and etc3-docker have the same issue.
Not sure why is this assigned to etcd-docker, reassigning to atomic.
this is still missing. System containers are currently using Docker to build the image but I am not sure we should hook more into Docker and use the LABELs metadata
There is a workaround that users need to use docker inspect the image to find out the version information.
Fixed here: https://github.com/projectatomic/atomic/commit/075035a0525a30f9b17342449182b3566d7b4265
Lokesh, would you like to add this to the 7.3.4 atomic errata as well? The commit seems to suggest it was fixed a few months ago.