Docker Container Version Control

Does anyone know of a good way to check the version of tools inside of Docker containers? Currently I am sshing into each container and checking the version. Ideally we would like to somehow expose the versions of our tools so we can just call the container with php –version and it tells us its version.

We are trying to make sure all of our different environments ( and local ) have containers which share the same versions of our tools. In the past it has been an issue where locally we might be developing in php 5.5 but our production docker had php 5.4

  • Advice needed on how to setup a SAAS service for a php based application
  • Running Docker using ConEmu
  • Docker centos7 systemctl deos not work : Failed to connect D-bus
  • Docker env variables not set while log via shell
  • Some paths of cgroup of a docker container are missing
  • Running tests in a container on Travis
  • Currently I am trying to set up a system that runs nightly and will slack our dev team if the versions of tools are different, but that requires sshing into each container.

    Any better ideas to check verions of tools?

  • Docker: Benefit of the “From”-Instructions?
  • Transforming Web.Config in a Windows Docker container
  • Deploying changes to Docker and its containers on the fly
  • In microservice, how do you make sure that all services get updated when more than one micro service is affected?
  • Docker-machine create: Error with pre-create check: “Hyper-v commands have to be run as an Administrator”
  • Error “DNS message ID mismatch” while pulling image
  • One Solution collect form web for “Docker Container Version Control”

    if you have the container id, you can run commands without entering the container in an interactive shell

    # docker exec  8b70c4db41e0 nginx -v
    nginx version: nginx/1.9.9

    To list all packages on Debian

    dpkg-query -l
    | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
    |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
    ||/ Name                     Version                  Architecture Description
    ii  acl                      2.2.52-2                 amd64        Access control list utilities
    ii  adduser                  3.113+nmu3               all          add and remove users and groups
    ii  apt                            amd64        commandline package manager
    ii  base-files               8+deb8u2                 amd64        Debian base system miscellaneous files
    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.