When you're using literal strings in a "docker inspect" format string, it seems that if a template resolution fails, leading literal strings can be duplicated. First, an example when it works, both without and with a leading literal string: sh-4.3# docker inspect -f '{{.Architecture}}' httpd amd64 sh-4.3# docker inspect -f 'My arch is {{.Architecture}}' httpd My arch is amd64 sh-4.3# But look what happens if i misspell as "Archtecture" in both cases: sh-4.3# docker inspect -f '{{.Archtecture}}' httpd <no value> sh-4.3# docker inspect -f 'My arch is {{.Archtecture}}' httpd My arch is My arch is <no value> ^^^^^^^^^^ ??? This is entirely reproducible; just misspell the contents of the template: sh-4.3# docker inspect -f 'My ports are {{.Config.Ports}}' httpd My ports are My ports are <no value>
Issue opened upstream. https://github.com/docker/docker/issues/15566 Shishir
PR Opened upstream. https://github.com/docker/docker/pull/15567 Shishir
Fixed Upstream. This will be available in the next release. Closing this one.
Shishir, we need a docker version for this fix. Did it make it into docker-1.9 or docker-1.10?
docker 1.9
Putting this ON_QA as docker 1.9 is already in stable and 1.10.1 is in testing.
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed.